fix None
This commit is contained in:
parent
1966b643fc
commit
5d022e2828
1 changed files with 4 additions and 2 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue