1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-19 16:58:48 +02: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:
epriestley 2013-07-27 16:24:12 -07:00
parent 06cd796db4
commit a7e4b846d6

View file

@ -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];