mirror of
https://github.com/jopohl/urh.git
synced 2026-03-15 20:56:48 +01:00
fix cleanup
This commit is contained in:
@@ -337,11 +337,19 @@ class VirtualDevice(QObject):
|
||||
if self.mode == Mode.send:
|
||||
self.__dev.socket.close()
|
||||
self.__dev.quit()
|
||||
self.data = None
|
||||
|
||||
elif self.backend == Backends.native:
|
||||
self.__dev.close()
|
||||
self.data = None
|
||||
|
||||
elif self.backend == Backends.none:
|
||||
pass
|
||||
|
||||
else:
|
||||
raise ValueError("Unsupported Backend")
|
||||
|
||||
|
||||
self.data = None
|
||||
|
||||
def emit_stopped_signal(self):
|
||||
self.stopped.emit()
|
||||
|
||||
Reference in New Issue
Block a user