diff options
| author | Zeyla Hellyer <[email protected]> | 2017-06-21 16:25:18 -0700 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-06-21 16:25:18 -0700 |
| commit | 4b86825753755ab5e68e2296e6e2c8c9570c664b (patch) | |
| tree | 8836b7c2661f71d8d742ab1f990725a32bb5887c /src/client | |
| parent | Reconnect on failed heartbeats (diff) | |
| download | serenity-4b86825753755ab5e68e2296e6e2c8c9570c664b.tar.xz serenity-4b86825753755ab5e68e2296e6e2c8c9570c664b.zip | |
Attempt to reconnect if heartbeating fails
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/mod.rs | 2 |
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. |