Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15465396
D11634.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
551 B
Referenced Files
None
Subscribers
None
D11634.diff
View Options
diff --git a/support/aphlict/server/lib/AphlictClientServer.js b/support/aphlict/server/lib/AphlictClientServer.js
--- a/support/aphlict/server/lib/AphlictClientServer.js
+++ b/support/aphlict/server/lib/AphlictClientServer.js
@@ -69,6 +69,11 @@
}
});
+ ws.on('close', function() {
+ self.getListenerList().removeListener(listener);
+ log('Disconnected.');
+ });
+
wss.on('close', function() {
self.getListenerList().removeListener(listener);
log('Disconnected.');
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 3, 6:08 PM (3 d, 1 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7222806
Default Alt Text
D11634.diff (551 B)
Attached To
Mode
D11634: Aphlict - remove listeners when clients close the connection
Attached
Detach File
Event Timeline
Log In to Comment