This commit is contained in:
Kovid Goyal 2012-08-05 23:48:29 +05:30
commit 924757df92

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