Skip to content

Commit

Permalink
Resume on Reconnect events. (#841)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lakelezz authored and arqunis committed Apr 22, 2020
1 parent 2961005 commit f543b57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/client/bridge/gateway/shard_runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ impl<H: EventHandler + Send + Sync + 'static,
}

match action {
Some(ShardAction::Reconnect(ReconnectType::Resume)) => {
Some(ShardAction::Reconnect(ReconnectType::Reidentify)) => {
let _ = self.request_restart();
continue;
},
Expand Down
2 changes: 1 addition & 1 deletion src/gateway/shard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ impl Shard {
}))
},
Ok(GatewayEvent::Reconnect) => {
Ok(Some(ShardAction::Reconnect(ReconnectType::Reidentify)))
Ok(Some(ShardAction::Reconnect(ReconnectType::Resume)))
},
Err(Error::Gateway(GatewayError::Closed(ref data))) => self.handle_gateway_closed(&data),
Err(Error::Tungstenite(ref why)) => {
Expand Down

0 comments on commit f543b57

Please sign in to comment.