This commit is contained in:
clowwindy 2014-06-02 18:11:38 +08:00
parent 1966b643fc
commit 5d022e2828

View file

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