Silly bug in smart device flood control

This commit is contained in:
Charles Haley 2012-08-05 19:51:45 +02:00
parent b94d849f0b
commit c080004682

View File

@ -586,7 +586,7 @@ class SMART_DEVICE_APP(DeviceConfig, DevicePlugin):
# the device.
raise OpenFailed('')
try:
peer = self.device_socket.getpeername()
peer = self.device_socket.getpeername()[0]
self.connection_attempts[peer] = 0
except:
pass