summaryrefslogtreecommitdiff
path: root/src/VBox/Additions/common/VBoxService/VBoxServiceTimeSync.cpp
diff options
context:
space:
mode:
authorvboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f>2017-08-31 12:10:02 +0000
committervboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f>2017-08-31 12:10:02 +0000
commitb749a1622ee68b1454871d094592f9b0ba214d5c (patch)
tree4701f1bea7934fb742386f60f85c171a479868ce /src/VBox/Additions/common/VBoxService/VBoxServiceTimeSync.cpp
parent30cfc8167c6b6de110ce9d11ef6305398841fe70 (diff)
downloadVirtualBox-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.cpp5
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);
}