Clean up temporary code

This commit is contained in:
pixl
2020-06-19 23:48:16 -04:00
parent f2a7b7b947
commit fb0b8e88ef
3 changed files with 8 additions and 6 deletions

View File

@@ -270,6 +270,14 @@ void RawDevice::listen()
this->handleEvent(report);
}
// Listener is stopped, handle I/O queue
while(!write_queue.empty())
{
auto task = write_queue.front();
(*task)();
write_queue.pop();
}
continue_listen = false;
}