mirror of
https://github.com/markqvist/Reticulum.git
synced 2024-11-26 07:20:18 +00:00
Improved startup time for instances and programs connected to a shared instance
This commit is contained in:
parent
1e477c976c
commit
680d17fb98
@ -144,6 +144,7 @@ class Transport:
|
|||||||
RNS.log("Loaded Transport Identity from storage", RNS.LOG_VERBOSE)
|
RNS.log("Loaded Transport Identity from storage", RNS.LOG_VERBOSE)
|
||||||
|
|
||||||
packet_hashlist_path = RNS.Reticulum.storagepath+"/packet_hashlist"
|
packet_hashlist_path = RNS.Reticulum.storagepath+"/packet_hashlist"
|
||||||
|
if not Transport.owner.is_connected_to_shared_instance:
|
||||||
if os.path.isfile(packet_hashlist_path):
|
if os.path.isfile(packet_hashlist_path):
|
||||||
try:
|
try:
|
||||||
file = open(packet_hashlist_path, "rb")
|
file = open(packet_hashlist_path, "rb")
|
||||||
@ -2081,6 +2082,7 @@ class Transport:
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def save_packet_hashlist():
|
def save_packet_hashlist():
|
||||||
|
if not Transport.owner.is_connected_to_shared_instance:
|
||||||
if hasattr(Transport, "saving_packet_hashlist"):
|
if hasattr(Transport, "saving_packet_hashlist"):
|
||||||
wait_interval = 0.2
|
wait_interval = 0.2
|
||||||
wait_timeout = 5
|
wait_timeout = 5
|
||||||
|
Loading…
Reference in New Issue
Block a user