PIIODevice destructor fix
This commit is contained in:
@@ -37,6 +37,12 @@ PITransparentDevice::PITransparentDevice() {
|
||||
}
|
||||
|
||||
|
||||
PITransparentDevice::~PITransparentDevice() {
|
||||
stop();
|
||||
close();
|
||||
}
|
||||
|
||||
|
||||
int PITransparentDevice::readDevice(void * read_to, int max_size) {
|
||||
if (!canRead()) return -1;
|
||||
que_mutex.lock();
|
||||
|
||||
Reference in New Issue
Block a user