Loading sjrpc/core/protocols/tunnel.py +3 −2 Original line number Diff line number Diff line Loading @@ -27,7 +27,8 @@ class TunnelProtocol(Protocol): self._endpoint = endpoint self._socket = None self._cb_on_close = kwargs.pop('on_close', self._cb_default_on_close) self._cb_on_close = kwargs.pop('on_close', self.cb_default_on_close) self._is_closed = False self._is_started = autostart self._from_tun_to_endpoint_buf = '' Loading Loading @@ -109,7 +110,7 @@ class TunnelProtocol(Protocol): type='get', payload=dict(size=size)) self._asked += size def _cb_default_on_close(self, tun): def cb_default_on_close(self, tun): ''' Action to do on the endpoint when the connection is closed. ''' Loading Loading
sjrpc/core/protocols/tunnel.py +3 −2 Original line number Diff line number Diff line Loading @@ -27,7 +27,8 @@ class TunnelProtocol(Protocol): self._endpoint = endpoint self._socket = None self._cb_on_close = kwargs.pop('on_close', self._cb_default_on_close) self._cb_on_close = kwargs.pop('on_close', self.cb_default_on_close) self._is_closed = False self._is_started = autostart self._from_tun_to_endpoint_buf = '' Loading Loading @@ -109,7 +110,7 @@ class TunnelProtocol(Protocol): type='get', payload=dict(size=size)) self._asked += size def _cb_default_on_close(self, tun): def cb_default_on_close(self, tun): ''' Action to do on the endpoint when the connection is closed. ''' Loading