We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06cd796 commit a7e4b84Copy full SHA for a7e4b84
support/aphlict/server/aphlict_server.js
@@ -129,12 +129,10 @@ var send_server = net.createServer(function(socket) {
129
var client_id = generate_id();
130
var client_name = '[' + socket.remoteAddress + '] [#' + client_id + '] ';
131
132
- socket.on('connect', function() {
133
- clients[client_id] = socket;
134
- current_connections++;
135
- log(client_name + 'connected\t\t(' +
136
- current_connections + ' current connections)');
137
- });
+ clients[client_id] = socket;
+ current_connections++;
+ log(client_name + 'connected\t\t(' +
+ current_connections + ' current connections)');
138
139
socket.on('close', function() {
140
delete clients[client_id];
0 commit comments