mirror of
https://github.com/markqvist/LXMF.git
synced 2024-12-26 23:59:34 -05:00
Append incoming to locally delivered transient IDs and check on arrival
This commit is contained in:
parent
21af6a4e5c
commit
3fbe2e94da
@ -953,6 +953,12 @@ class LXMRouter:
|
|||||||
RNS.log(str(self)+" ignored message from "+RNS.prettyhexrep(message.source_hash), RNS.LOG_DEBUG)
|
RNS.log(str(self)+" ignored message from "+RNS.prettyhexrep(message.source_hash), RNS.LOG_DEBUG)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
if self.has_message(message.hash):
|
||||||
|
RNS.log(str(self)+" ignored already received message from "+RNS.prettyhexrep(message.source_hash), RNS.LOG_DEBUG)
|
||||||
|
return False
|
||||||
|
else:
|
||||||
|
self.locally_delivered_transient_ids[message.hash] = time.time()
|
||||||
|
|
||||||
if self.__delivery_callback != None and callable(self.__delivery_callback):
|
if self.__delivery_callback != None and callable(self.__delivery_callback):
|
||||||
try:
|
try:
|
||||||
self.__delivery_callback(message)
|
self.__delivery_callback(message)
|
||||||
|
Loading…
Reference in New Issue
Block a user