mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-09 16:32:39 +01:00
Fix Aphlict server for newer Node
Summary: Fixes T3630. Test Plan: Ran server on 0.11.0, got notifications. Reviewers: btrahan Reviewed By: btrahan CC: aran Maniphest Tasks: T3630 Differential Revision: https://secure.phabricator.com/D6588
This commit is contained in:
parent
06cd796db4
commit
a7e4b846d6
1 changed files with 4 additions and 6 deletions
|
@ -129,12 +129,10 @@ var send_server = net.createServer(function(socket) {
|
|||
var client_id = generate_id();
|
||||
var client_name = '[' + socket.remoteAddress + '] [#' + client_id + '] ';
|
||||
|
||||
socket.on('connect', function() {
|
||||
clients[client_id] = socket;
|
||||
current_connections++;
|
||||
log(client_name + 'connected\t\t(' +
|
||||
current_connections + ' current connections)');
|
||||
});
|
||||
|
||||
socket.on('close', function() {
|
||||
delete clients[client_id];
|
||||
|
|
Loading…
Reference in a new issue