send nop after updating variables (fix race condition?)

This commit is contained in:
Elijah R 2024-01-04 14:56:54 -05:00
parent af7f7dc810
commit 2ab077ae6a

View file

@ -488,11 +488,11 @@ public class User
{ {
if (!timeOut) if (!timeOut)
{ {
await SendAsync("3.nop;");
timeOut = true; timeOut = true;
timeoutTimer.Stop(); timeoutTimer.Stop();
timeoutTimer.Interval = 3000; timeoutTimer.Interval = 3000;
timeoutTimer.Start(); timeoutTimer.Start();
await SendAsync("3.nop;");
} }
else else
{ {