Skip to content

Commit

Permalink
new closing of socket
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Sep 9, 2015
1 parent 74ec996 commit fb858ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/netius/base/server.py
Expand Up @@ -674,8 +674,8 @@ def on_socket_c(self, socket_c, address):
# verifies a series of pre-conditions on the socket so
# that it's ensured to be in a valid state before it's
# set as a new connection for the server (validation)
if socket_c._closed: return
if self.ssl and not socket_c._sslobj: return
if socket_c._closed: socket_c.close(); return
if self.ssl and not socket_c._sslobj: socket_c.close(); return

# in case the ssl mode is enabled, "patches" the socket
# object with an extra pending reference, that is going
Expand Down

0 comments on commit fb858ea

Please sign in to comment.