Skip to content

Commit

Permalink
4011 is not handable
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuyukai authored and zeyla committed Jan 4, 2017
1 parent 2cb607d commit 93f3c60
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/client/gateway/shard.rs
Expand Up @@ -355,6 +355,7 @@ impl Shard {
},
Some(4008) => warn!("Gateway ratelimited"),
Some(4010) => warn!("Sent invalid shard"),
Some(4011) => warn!("Bot requires more shards"),
Some(4006) | Some(4009) => {
info!("Invalid session");

Expand All @@ -366,7 +367,7 @@ impl Shard {
_ => {},
}

if !clean && num != Some(1000) && num != Some(4004) {
if !clean && num != Some(1000) && num != Some(4004) && num != Some(4011) {
if let Some(session_id) = self.session_id.clone() {
match self.resume(session_id, receiver) {
Ok((ev, rec)) => return Ok(Some((ev, Some(rec)))),
Expand Down

0 comments on commit 93f3c60

Please sign in to comment.