Commit df53c50d authored by mercury233's avatar mercury233

fix nodejs compatibility

parent 9c030624
...@@ -144,7 +144,7 @@ get_memory_usage = ()-> ...@@ -144,7 +144,7 @@ get_memory_usage = ()->
Graveyard = [] Graveyard = []
tribute = (socket) -> tribute = (socket) ->
setTimeout ((socket)-> Graveyard.push(socket);return)(socket), 3000 setTimeout ((socket)-> Graveyard.push(socket);return), 3000, socket
return return
setInterval ()-> setInterval ()->
......
...@@ -193,7 +193,7 @@ ...@@ -193,7 +193,7 @@
tribute = function(socket) { tribute = function(socket) {
setTimeout((function(socket) { setTimeout((function(socket) {
Graveyard.push(socket); Graveyard.push(socket);
})(socket), 3000); }), 3000, socket);
}; };
setInterval(function() { setInterval(function() {
......
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