mirror of
https://github.com/markqvist/LXMF.git
synced 2025-05-22 15:51:44 -04:00
Fixed unhandled behaviour when link interface intermittently becomes unavailable
This commit is contained in:
parent
bd3ace0885
commit
323241a4b8
2 changed files with 7 additions and 3 deletions
|
@ -282,8 +282,12 @@ class LXMessage:
|
||||||
|
|
||||||
if self.representation == LXMessage.PACKET:
|
if self.representation == LXMessage.PACKET:
|
||||||
receipt = self.__as_packet().send()
|
receipt = self.__as_packet().send()
|
||||||
receipt.set_delivery_callback(self.__mark_delivered)
|
if receipt:
|
||||||
receipt.set_timeout_callback(self.__link_packet_timed_out)
|
receipt.set_delivery_callback(self.__mark_delivered)
|
||||||
|
receipt.set_timeout_callback(self.__link_packet_timed_out)
|
||||||
|
else:
|
||||||
|
if self.__delivery_destination:
|
||||||
|
self.__delivery_destination.teardown()
|
||||||
|
|
||||||
elif self.representation == LXMessage.RESOURCE:
|
elif self.representation == LXMessage.RESOURCE:
|
||||||
self.resource_representation = self.__as_resource()
|
self.resource_representation = self.__as_resource()
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
|
||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
name="lxmf",
|
name="lxmf",
|
||||||
version="0.1.5",
|
version="0.1.6",
|
||||||
author="Mark Qvist",
|
author="Mark Qvist",
|
||||||
author_email="mark@unsigned.io",
|
author_email="mark@unsigned.io",
|
||||||
description="Lightweight Extensible Message Format for Reticulum",
|
description="Lightweight Extensible Message Format for Reticulum",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue