mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-02 12:16:53 +00:00
Start WebSocket before registering its presence
This commit is contained in:
1 parent
d1735c7e57
commit
703405b874
1 file changed
+1
-1
+1
-1
@@ -91,9 +91,9 @@ public class AuthenticatedConnectListener implements WebSocketConnectListener {
|
||||
});
|
||||
|
||||
try {
|
||||
connection.start();
|
||||
clientPresenceManager.setPresent(auth.getAccount().getUuid(), device.getId(), connection);
|
||||
messagesManager.addMessageAvailabilityListener(auth.getAccount().getUuid(), device.getId(), connection);
|
||||
connection.start();
|
||||
} catch (final Exception e) {
|
||||
log.warn("Failed to initialize websocket", e);
|
||||
context.getClient().close(1011, "Unexpected error initializing connection");
|
||||
|
||||
Reference in new issue
Block a user