Exemplo n.º 1
0
 def close(self):
     # make sure we stop the thread first
     HIDDevice.close(self)
     
     if self._device_handle:
         # re-import logging, as may have been deleted already
         import logging
         logging.info("closing _device_handle")
         self._CloseHandle(self._device_handle)
         self._device_handle=None
     
     self._write_overlapped=None
Exemplo n.º 2
0
 def close(self):
     # should be sufficient to get callback thread to quit
     if self._hidInterface:
         self._hidInterface = None
     HIDDevice.close(self)
Exemplo n.º 3
0
 def close(self):
     # should be sufficient to get callback thread to quit
     if self._hidInterface:
         self._hidInterface = None
     HIDDevice.close(self)