Commit d3f2af8a authored by mercury233's avatar mercury233

test

parent 71078bb7
......@@ -608,7 +608,7 @@ net.createServer (client) ->
connect_count--
ROOM_connected_ip[client.ip] = connect_count
#log.info "disconnect", client.ip, ROOM_connected_ip[client.ip]
tribute(client)
#tribute(client)
unless client.closed
client.closed = true
room.disconnect(client) if room
......@@ -623,7 +623,7 @@ net.createServer (client) ->
connect_count--
ROOM_connected_ip[client.ip] = connect_count
#log.info "err disconnect", client.ip, ROOM_connected_ip[client.ip]
tribute(client)
#tribute(client)
unless client.closed
client.closed = error
room.disconnect(client, error) if room
......@@ -638,7 +638,7 @@ net.createServer (client) ->
#log.info "server closed", client.name, had_error
room=ROOM_all[client.rid]
#log.info "server close", client.ip, ROOM_connected_ip[client.ip]
tribute(server)
#tribute(server)
room.disconnector = 'server' if room
server.closed = true unless server.closed
unless client.closed
......@@ -650,7 +650,7 @@ net.createServer (client) ->
#log.info "server error", client.name, error
room=ROOM_all[client.rid]
#log.info "server err close", client.ip, ROOM_connected_ip[client.ip]
tribute(server)
#tribute(server)
room.disconnector = 'server' if room
server.closed = error
unless client.closed
......
......@@ -803,7 +803,6 @@
connect_count--;
}
ROOM_connected_ip[client.ip] = connect_count;
tribute(client);
if (!client.closed) {
client.closed = true;
if (room) {
......@@ -820,7 +819,6 @@
connect_count--;
}
ROOM_connected_ip[client.ip] = connect_count;
tribute(client);
if (!client.closed) {
client.closed = error;
if (room) {
......@@ -835,7 +833,6 @@
server.on('close', function(had_error) {
var room;
room = ROOM_all[client.rid];
tribute(server);
if (room) {
room.disconnector = 'server';
}
......@@ -850,7 +847,6 @@
server.on('error', function(error) {
var room;
room = ROOM_all[client.rid];
tribute(server);
if (room) {
room.disconnector = 'server';
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment