Browse Source

Added TODO note for increased shutdown speed of SocketDevice.

pyserial_fix
Scott Petersen 11 years ago
parent
commit
84b8249957
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      pyad2/devices.py

+ 2
- 0
pyad2/devices.py View File

@@ -920,8 +920,10 @@ class SocketDevice(Device):
Closes the device.
"""
try:
# TODO: Find a way to speed up this shutdown.
if self.ssl:
self._device.shutdown()

else:
self._device.shutdown(socket.SHUT_RDWR) # Make sure that it closes immediately.



Loading…
Cancel
Save