]> rtime.felk.cvut.cz Git - CanFestival-3.git/commitdiff
fix bug in canclose for win32
authorgreg <greg>
Thu, 28 Aug 2008 12:55:32 +0000 (12:55 +0000)
committergreg <greg>
Thu, 28 Aug 2008 12:55:32 +0000 (12:55 +0000)
drivers/win32/win32.cpp

index 1dd5f62b82e13cab38b71773d43e37f54f6603c4..6cb02b7ab5f2b0b2102c93248ad37ce391edc7f2 100755 (executable)
@@ -207,8 +207,8 @@ int canClose(CO_Data * d)
                        d->canHandle = NULL;
                        data->continue_receive_thread = false;}
                  LeaveMutex();
-                 WaitReceiveTaskEnd(&data->receive_thread);
                  (*s_driver_procs.m_canClose)(data->inst);
+                 WaitReceiveTaskEnd(&data->receive_thread);
                  delete data;
                  return 0;
       }