Skip to content

Commit f4fc3aa

Browse files
committed
Fixed exception
1 parent 98cbc2e commit f4fc3aa

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

pysyncobj/tcp_connection.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,8 @@ def __processConnection(self, descr, eventType):
184184
return
185185

186186
self.__processConnectionTimeout()
187+
if self.state == CONNECTION_STATE.DISCONNECTED:
188+
return
187189

188190
if eventType & POLL_EVENT_TYPE.READ or eventType & POLL_EVENT_TYPE.WRITE:
189191
if self.__socket.getsockopt(socket.SOL_SOCKET, socket.SO_ERROR):

0 commit comments

Comments
 (0)