Do not unlock the mutex manually since we are using a MutexLocker.

Unlocking a mutex twice seems to cause deadlocks on OS X if we stress the
library. Windows seems unaffected. See #260.
This commit is contained in:
Micke Prag 2012-11-02 13:08:43 +01:00
parent 9d5af14609
commit d0b1dbba0e

View file

@ -196,7 +196,6 @@ void TellStick::run() {
}
FT_GetQueueStatus(d->ftHandle, &dwBytesInQueue);
if (dwBytesInQueue < 1) {
d->mutex.unlock();
continue;
}
buf = reinterpret_cast<char*>(malloc(sizeof(buf) * (dwBytesInQueue+1)));