mirror of
https://github.com/mikedilger/gossip.git
synced 2024-09-19 19:46:50 +00:00
Don't disconnect from relay if we are waiting for an OK (doesn't quite work due to wrong overlord signalling)
This commit is contained in:
parent
2ca285fd68
commit
99ccd4dc8a
@ -447,7 +447,7 @@ impl Minion {
|
||||
_ = ping_timer.tick() => {
|
||||
ws_stream.send(WsMessage::Ping(vec![0x1])).await?;
|
||||
},
|
||||
_ = task_timer.tick() => {
|
||||
_ = task_timer.tick() => { // 1.5 seconds
|
||||
// Update subscription for sought events
|
||||
self.get_events().await?;
|
||||
|
||||
@ -506,6 +506,7 @@ impl Minion {
|
||||
if self.subscription_map.is_empty()
|
||||
&& self.subscriptions_waiting_for_auth.is_empty()
|
||||
&& self.subscriptions_waiting_for_metadata.is_empty()
|
||||
&& self.postings.is_empty()
|
||||
{
|
||||
self.exiting = Some(MinionExitReason::SubscriptionsHaveCompleted);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user