File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2794,7 +2794,7 @@ def save_packet_hashlist():
2794
2794
2795
2795
packet_hashlist_path = RNS .Reticulum .storagepath + "/packet_hashlist"
2796
2796
file = open (packet_hashlist_path , "wb" )
2797
- file .write (umsgpack .packb (list (Transport .packet_hashlist )))
2797
+ file .write (umsgpack .packb (list (Transport .packet_hashlist . copy () )))
2798
2798
file .close ()
2799
2799
2800
2800
save_time = time .time () - save_start
@@ -2829,7 +2829,7 @@ def save_path_table():
2829
2829
RNS .log ("Saving path table to storage..." , RNS .LOG_DEBUG )
2830
2830
2831
2831
serialised_destinations = []
2832
- for destination_hash in Transport .destination_table :
2832
+ for destination_hash in Transport .destination_table . copy () :
2833
2833
# Get the destination entry from the destination table
2834
2834
de = Transport .destination_table [destination_hash ]
2835
2835
interface_hash = de [5 ].get_hash ()
@@ -2899,10 +2899,10 @@ def save_tunnel_table():
2899
2899
RNS .log ("Saving tunnel table to storage..." , RNS .LOG_DEBUG )
2900
2900
2901
2901
serialised_tunnels = []
2902
- for tunnel_id in Transport .tunnels :
2902
+ for tunnel_id in Transport .tunnels . copy () :
2903
2903
te = Transport .tunnels [tunnel_id ]
2904
2904
interface = te [1 ]
2905
- tunnel_paths = te [2 ]
2905
+ tunnel_paths = te [2 ]. copy ()
2906
2906
expires = te [3 ]
2907
2907
2908
2908
if interface != None :
You can’t perform that action at this time.
0 commit comments