summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ftnoir_protocol_sc/ftnoir_protocol_sc.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/ftnoir_protocol_sc/ftnoir_protocol_sc.cpp b/ftnoir_protocol_sc/ftnoir_protocol_sc.cpp
index f767d232..30590715 100644
--- a/ftnoir_protocol_sc/ftnoir_protocol_sc.cpp
+++ b/ftnoir_protocol_sc/ftnoir_protocol_sc.cpp
@@ -62,7 +62,8 @@ void FTNoIR_Protocol::run()
(void) simconnect_close(hSimConnect);
}
- Sleep(100);
+ if (!should_stop)
+ Sleep(100);
}
(void) timeEndPeriod(1);