Add empty process_(remote|local)_state methods

This commit is contained in:
Flavio Percoco 2015-06-20 14:00:46 +02:00
parent 2180e84d22
commit e148b219c2
2 changed files with 7 additions and 1 deletions

View File

@ -157,6 +157,12 @@ class Endpoint(object):
except IndexError:
LOG.debug("Endpoint %s: ignoring unexpected local event",
self._name)
else:
def _process_remote_state(self):
pass
def _process_local_state(self):
pass
@property
def _endpoint_state(self):

View File

@ -193,7 +193,7 @@ class _Link(Endpoint):
# if link not already closed:
if self._endpoint_state & proton.Endpoint.REMOTE_ACTIVE:
# simulate close received
self.process_remote_state()
self._process_remote_state()
elif self._endpoint_state & proton.Endpoint.REMOTE_UNINIT:
# locally created link, will never come up
self._failed = True