adjust nop interval again
This commit is contained in:
parent
fe71945b6d
commit
af7f7dc810
1 changed files with 2 additions and 2 deletions
|
@ -57,7 +57,7 @@ public class User
|
|||
this.socket = socket;
|
||||
this._ip = ip;
|
||||
tokenSource = new CancellationTokenSource();
|
||||
timeoutTimer = new Timer(10000);
|
||||
timeoutTimer = new Timer(6000);
|
||||
timeoutTimer.Elapsed += async (sender, args) => await TimeoutCallback();
|
||||
timeoutTimer.AutoReset = false;
|
||||
timeoutTimer.Start();
|
||||
|
@ -97,7 +97,7 @@ public class User
|
|||
}
|
||||
this.timeOut = false;
|
||||
this.timeoutTimer.Stop();
|
||||
this.timeoutTimer.Interval = 10000;
|
||||
this.timeoutTimer.Interval = 6000;
|
||||
this.timeoutTimer.Start();
|
||||
switch (msgArr[0])
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue