This website works better with JavaScript.
Home
Explore
Help
Sign In
jmg
/
alarmdecoder
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Added TODO note for increased shutdown speed of SocketDevice.
pyserial_fix
Scott Petersen
11 years ago
parent
ea06827f79
commit
84b8249957
1 changed files
with
2 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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.
Write
Preview
Loading…
Cancel
Save