mirror of
https://github.com/Xahau/xahau.js.git
synced 2026-08-23 00:20:52 +00:00
Don't begin to check server activity until connected
This commit is contained in:
@@ -51,7 +51,9 @@ function Server(remote, opts) {
|
||||
}
|
||||
};
|
||||
|
||||
setInterval(checkServerActivity, 1000);
|
||||
this.once('connect', function() {
|
||||
setInterval(checkServerActivity, 1000);
|
||||
});
|
||||
};
|
||||
|
||||
util.inherits(Server, EventEmitter);
|
||||
|
||||
Reference in New Issue
Block a user