We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4cbc1fa commit 4423cd1Copy full SHA for 4423cd1
1 file changed
Source/Plugins/IntanRecordingController/USBThread.cpp
@@ -51,9 +51,12 @@ void USBThread::startAcquisition(int nBytes)
51
void USBThread::stopAcquisition()
52
{
53
std::cout << "Stopping usb thread" << std::endl;
54
- if (!stopThread(1000))
+ if (isThreadRunning())
55
56
- std::cerr << "USB Thread could not stop cleanly. Force quitting it" << std::endl;
+ if (!stopThread(1000))
57
+ {
58
+ std::cerr << "USB Thread could not stop cleanly. Force quitting it" << std::endl;
59
+ }
60
}
61
62
0 commit comments