Commit a46d5835 authored by nanamicat's avatar nanamicat

fix

parent 988abaae
......@@ -57,7 +57,7 @@ export class Router {
update(socket: Socket) {
if (!this.rinfo) return;
if (Date.now() - this.time > config.timeout) {
if (Date.now() - this.time > config.timeout * 1000) {
console.log(`router ${this.id} lost connection.`);
this.rinfo = undefined;
this.reset();
......
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