feat(core): Remove ignoreLock

This commit is contained in:
PapaTutuWawa 2023-04-03 12:47:38 +02:00
parent 3da334b5cf
commit 0d9afd546c

View File

@ -353,7 +353,6 @@ class XmppConnection {
_log.finest('Calling _connectImpl() from _attemptReconnection'); _log.finest('Calling _connectImpl() from _attemptReconnection');
await _connectImpl( await _connectImpl(
waitForConnection: true, waitForConnection: true,
ignoreLock: true,
); );
} }
@ -1060,17 +1059,12 @@ class XmppConnection {
/// The private implementation for [XmppConnection.connect]. The parameters have /// The private implementation for [XmppConnection.connect]. The parameters have
/// the same meaning as with [XmppConnection.connect]. /// the same meaning as with [XmppConnection.connect].
///
/// [ignoreLock] is a flag that, if true, causes the method to not try to aquire
/// a connection lock. This is useful when we already aquired the connection lock,
/// for example, in _attemptReconnection.
Future<Result<bool, XmppError>> _connectImpl({ Future<Result<bool, XmppError>> _connectImpl({
String? lastResource, String? lastResource,
bool waitForConnection = false, bool waitForConnection = false,
bool shouldReconnect = true, bool shouldReconnect = true,
bool waitUntilLogin = false, bool waitUntilLogin = false,
bool enableReconnectOnSuccess = true, bool enableReconnectOnSuccess = true,
bool ignoreLock = false,
}) async { }) async {
// Kill a possibly existing connection // Kill a possibly existing connection
_socket.close(); _socket.close();