mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-11 00:05:49 +00:00
Change optional ping interval units to seconds
This commit is contained in:
@@ -210,7 +210,8 @@ function Remote(opts, trace) {
|
||||
|
||||
if (opts.ping) {
|
||||
this.once('connect', function() {
|
||||
self._pingInterval = setInterval(pingServers, Number(opts.ping));
|
||||
var interval = Number(opts.ping) * 1000;
|
||||
self._pingInterval = setInterval(pingServers, interval);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user