Browse Source

fix None

auth
clowwindy 11 years ago
parent
commit
5d022e2828
  1. 2
      shadowsocks/tcprelay.py

2
shadowsocks/tcprelay.py

@ -320,10 +320,12 @@ class TCPRelayHandler(object):
self.update_stream(STREAM_UP, WAIT_STATUS_READING) self.update_stream(STREAM_UP, WAIT_STATUS_READING)
def on_local_error(self): def on_local_error(self):
if self._local_sock:
logging.error(eventloop.get_sock_error(self._local_sock)) logging.error(eventloop.get_sock_error(self._local_sock))
self.destroy() self.destroy()
def on_remote_error(self): def on_remote_error(self):
if self._remote_sock:
logging.error(eventloop.get_sock_error(self._remote_sock)) logging.error(eventloop.get_sock_error(self._remote_sock))
self.destroy() self.destroy()

Loading…
Cancel
Save