diff options
Diffstat (limited to 'src/VBox/Additions/common/VBoxService/VBoxServiceTimeSync.cpp')
-rw-r--r-- | src/VBox/Additions/common/VBoxService/VBoxServiceTimeSync.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/VBox/Additions/common/VBoxService/VBoxServiceTimeSync.cpp b/src/VBox/Additions/common/VBoxService/VBoxServiceTimeSync.cpp index f696cbcc559..29bfebd1f00 100644 --- a/src/VBox/Additions/common/VBoxService/VBoxServiceTimeSync.cpp +++ b/src/VBox/Additions/common/VBoxService/VBoxServiceTimeSync.cpp @@ -618,8 +618,6 @@ DECLCALLBACK(int) vgsvcTimeSyncWorker(bool volatile *pfShutdown) } vgsvcTimeSyncCancelAdjust(); - RTSemEventMultiDestroy(g_TimeSyncEvent); - g_TimeSyncEvent = NIL_RTSEMEVENTMULTI; return rc; } @@ -629,7 +627,8 @@ DECLCALLBACK(int) vgsvcTimeSyncWorker(bool volatile *pfShutdown) */ static DECLCALLBACK(void) vgsvcTimeSyncStop(void) { - RTSemEventMultiSignal(g_TimeSyncEvent); + if (g_TimeSyncEvent != NIL_RTSEMEVENTMULTI) + RTSemEventMultiSignal(g_TimeSyncEvent); } |