Fix complete fail to do the right thing

This commit is contained in:
Richard van der Hoff 2018-09-28 12:45:54 +01:00
parent 0c4a99ea2d
commit 965154d60a
2 changed files with 3 additions and 1 deletions

View file

@ -354,7 +354,7 @@ class TransactionQueue(object):
content=content,
)
if not destination == self.server_name:
if destination == self.server_name:
logger.info("Not sending EDU to ourselves")
return
@ -372,6 +372,7 @@ class TransactionQueue(object):
def send_device_messages(self, destination):
if destination == self.server_name:
logger.info("Not sending device update to ourselves")
return
self._attempt_new_transaction(destination)