aboutsummaryrefslogtreecommitdiff
path: root/libdino/src/service/connection_manager.vala
diff options
context:
space:
mode:
Diffstat (limited to 'libdino/src/service/connection_manager.vala')
-rw-r--r--libdino/src/service/connection_manager.vala4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdino/src/service/connection_manager.vala b/libdino/src/service/connection_manager.vala
index f9dbb0e1..3f945f4c 100644
--- a/libdino/src/service/connection_manager.vala
+++ b/libdino/src/service/connection_manager.vala
@@ -58,7 +58,7 @@ public class ConnectionManager {
}
private class RecMutexWrap {
- public RecMutex mutex = new RecMutex();
+ public RecMutex mutex = RecMutex();
public void lock() { mutex.lock(); }
public void unlock() { mutex.unlock(); }
public bool trylock() { return mutex.trylock(); }
@@ -121,7 +121,7 @@ public class ConnectionManager {
}
public Core.XmppStream? connect(Account account) {
- if (!connection_mutexes.contains(account)) connection_mutexes[account] = new RecMutexWrap();
+ if (!connection_mutexes.has_key(account)) connection_mutexes[account] = new RecMutexWrap();
if (!connection_todo.contains(account)) connection_todo.add(account);
if (!connections.has_key(account)) {
return connect_(account);