mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-20 14:18:04 +01:00
Start WebSocket before registering its presence
This commit is contained in:
committed by
Jon Chambers
parent
d1735c7e57
commit
703405b874
@@ -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