mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-27 03:43:27 +01:00
Delay storage service sync until empty
Co-authored-by: trevor-signal <131492920+trevor-signal@users.noreply.github.com>
This commit is contained in:
@@ -879,6 +879,17 @@ export class SocketManager extends EventListener {
|
||||
this.#incomingRequestQueue = [];
|
||||
this.#authenticated = undefined;
|
||||
this.#setAuthenticatedStatus({ status: SocketStatus.CLOSED });
|
||||
|
||||
for (const handlers of this.#requestHandlers) {
|
||||
try {
|
||||
handlers.handleDisconnect();
|
||||
} catch (error) {
|
||||
log.warn(
|
||||
'SocketManager: got exception while handling disconnect, ' +
|
||||
`error: ${Errors.toLogFormat(error)}`
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#dropUnauthenticated(process: AbortableProcess<IWebSocketResource>): void {
|
||||
|
||||
Reference in New Issue
Block a user