Fixed missing isolation of packet delivery callback
This commit is contained in:
parent
1bd6020163
commit
7df11a6f67
@ -402,7 +402,12 @@ class PacketReceipt:
|
|||||||
self.proof_packet = proof_packet
|
self.proof_packet = proof_packet
|
||||||
|
|
||||||
if self.callbacks.delivery != None:
|
if self.callbacks.delivery != None:
|
||||||
self.callbacks.delivery(self)
|
try:
|
||||||
|
self.callbacks.delivery(self)
|
||||||
|
except Exception as e:
|
||||||
|
RNS.log("An error occurred while evaluating external delivery callback for "+str(link), RNS.LOG_ERROR)
|
||||||
|
RNS.log("The contained exception was: "+str(e), RNS.LOG_ERROR)
|
||||||
|
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
return False
|
return False
|
||||||
|
Loading…
Reference in New Issue
Block a user