mirror of
https://github.com/socketio/socket.io.git
synced 2026-04-30 03:00:39 -04:00
@@ -104,8 +104,9 @@ function Manager (server, options) {
|
||||
clearInterval(self.gc);
|
||||
});
|
||||
|
||||
// run our private gc every 10 seconds
|
||||
this.gc = setInterval(this.garbageCollection.bind(this), 10000);
|
||||
server.once('listening', function () {
|
||||
self.gc = setInterval(self.garbageCollection.bind(self), 10000);
|
||||
});
|
||||
|
||||
for (var i in transports) {
|
||||
if (transports[i].init) {
|
||||
|
||||
Reference in New Issue
Block a user