summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-07-06 07:11:43 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-07-06 07:11:43 +0200
commite21853bff477cd90c5c60ba1a4ef9304df7538fe (patch)
tree413822986e101f77b14ba93b9a5b7824ae9038c5
parentd2076ff5deb2046d1f8bcd2d324e5cd917c3871d (diff)
simconnect: don't sleep while exiting
-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);