mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-19 09:38:02 +01:00
Clarify the purpose of an addListener method
This commit is contained in:
committed by
Jon Chambers
parent
fd5e9ea016
commit
d1eb247d8c
@@ -38,7 +38,7 @@ public class WebSocketSessionContext {
|
||||
return authenticated;
|
||||
}
|
||||
|
||||
public synchronized void addListener(WebSocketEventListener listener) {
|
||||
public synchronized void addWebsocketClosedListener(WebSocketEventListener listener) {
|
||||
if (!closed) this.closeListeners.add(listener);
|
||||
else listener.onWebSocketClose(this, 1000, "Closed");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user