1
0

DokanMain() now returns after unmount

This commit is contained in:
Scott E. Graves
2017-03-25 09:41:04 -05:00
parent b14d7f039f
commit 77579ffea3

View File

@@ -896,8 +896,7 @@ public:
{ {
while (!DokanRemoveMountPoint(&_mountPoint[0])) while (!DokanRemoveMountPoint(&_mountPoint[0]))
::Sleep(1000); ::Sleep(1000);
// HACK - DokanMain() never returns
::TerminateThread(_mountThread->native_handle(), -1);
_mountThread->join(); _mountThread->join();
_mountThread.reset(nullptr); _mountThread.reset(nullptr);
_mountPoint = ""; _mountPoint = "";