File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -667,11 +667,10 @@ void do_tox_connection(Toxic *toxic)
667667 return ;
668668 }
669669
670- static time_t last_bootstrap_time = 0 ; // TODO: Put this in Toxic
671670 const bool connected = prompt_selfConnectionStatus (toxic ) != TOX_CONNECTION_NONE ;
672671
673- if (!connected && timed_out (last_bootstrap_time , TRY_BOOTSTRAP_INTERVAL )) {
672+ if (!connected && timed_out (toxic -> last_bootstrap_time , TRY_BOOTSTRAP_INTERVAL )) {
674673 DHT_bootstrap (toxic -> tox );
675- last_bootstrap_time = get_unix_time ();
674+ toxic -> last_bootstrap_time = get_unix_time ();
676675 }
677676}
Original file line number Diff line number Diff line change @@ -107,6 +107,7 @@ typedef struct Toxic {
107107
108108 FriendRequests frnd_requests ;
109109 Paths * paths ;
110+ time_t last_bootstrap_time ;
110111} Toxic ;
111112
112113typedef struct Init_Queue Init_Queue ;
You can’t perform that action at this time.
0 commit comments