PIIODevice threaded read refactoring
This commit is contained in:
@@ -436,7 +436,7 @@ ssize_t PIBinaryLog::writeDevice(const void * data, ssize_t size) {
|
||||
|
||||
|
||||
void PIBinaryLog::restart() {
|
||||
bool th = isRunning();
|
||||
bool th = isThreadedRead();
|
||||
if (th) stopThreadedRead();
|
||||
if (!canRead()) return;
|
||||
logmutex.unlock();
|
||||
|
||||
Reference in New Issue
Block a user