Skip to content

Commit 8709248

Browse files
NZSmartieqdot
authored andcommitted
Don't fire ping timout callback immediately
1 parent f151eb6 commit 8709248

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Buttplug.Server/ButtplugServer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,8 @@ public async Task<ButtplugMessage> SendMessage([NotNull] ButtplugMessage aMsg)
158158
case Ping _:
159159
if (_pingTimer != null)
160160
{
161-
// Cause the timer to fire immediately
162-
_pingTimer.Change(0, (int)_maxPingTime);
161+
// Start the timer
162+
_pingTimer.Change((int)_maxPingTime, (int)_maxPingTime);
163163
}
164164

165165
return new Ok(id);

0 commit comments

Comments
 (0)