diff options
author | vboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f> | 2017-08-31 12:10:02 +0000 |
---|---|---|
committer | vboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f> | 2017-08-31 12:10:02 +0000 |
commit | b749a1622ee68b1454871d094592f9b0ba214d5c (patch) | |
tree | 4701f1bea7934fb742386f60f85c171a479868ce /src/VBox/Additions/common/VBoxService/VBoxServiceTimeSync.cpp | |
parent | 30cfc8167c6b6de110ce9d11ef6305398841fe70 (diff) | |
download | VirtualBox-svn-b749a1622ee68b1454871d094592f9b0ba214d5c.tar.gz |
merging vbglioc r117709: VBoxServiceTimeSync.cpp: Don't destroy the semaphore in vgsvcTimeSyncWorker, the Term method shall do that, otherwise the stop method will try signal an invalid handle.
git-svn-id: https://www.virtualbox.org/svn/vbox/trunk@68557 cfe28804-0f27-0410-a406-dd0f0b0b656f
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); } |