aboutsummaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2017-06-21 16:25:18 -0700
committerZeyla Hellyer <[email protected]>2017-06-21 16:25:18 -0700
commit4b86825753755ab5e68e2296e6e2c8c9570c664b (patch)
tree8836b7c2661f71d8d742ab1f990725a32bb5887c /src/client
parentReconnect on failed heartbeats (diff)
downloadserenity-4b86825753755ab5e68e2296e6e2c8c9570c664b.tar.xz
serenity-4b86825753755ab5e68e2296e6e2c8c9570c664b.zip
Attempt to reconnect if heartbeating fails
Diffstat (limited to 'src/client')
-rw-r--r--src/client/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/mod.rs b/src/client/mod.rs
index f35a400..8cab2d3 100644
--- a/src/client/mod.rs
+++ b/src/client/mod.rs
@@ -1251,7 +1251,7 @@ fn boot_shard(info: &BootInfo) -> Result<Shard> {
//
// After three attempts, start re-retrieving the gateway URL. Before that,
// use the cached one.
- for attempt_number in 1..11u64 {
+ for attempt_number in 1..3u64 {
// If we've tried over 3 times so far, get a new gateway URL.
//
// If doing so fails, count this as a boot attempt.