diff options
| author | Austin Hellyer <[email protected]> | 2016-12-20 15:24:40 -0800 |
|---|---|---|
| committer | Austin Hellyer <[email protected]> | 2016-12-29 11:50:53 -0800 |
| commit | 5f7942aa75f1416ca6580ec37ed878eb45fb30d4 (patch) | |
| tree | 54f905df9c429dbcca04f901179bd759badd9e24 /src | |
| parent | Round 1 (diff) | |
| download | serenity-5f7942aa75f1416ca6580ec37ed878eb45fb30d4.tar.xz serenity-5f7942aa75f1416ca6580ec37ed878eb45fb30d4.zip | |
A bit more logging
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/gateway/prep.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/gateway/prep.rs b/src/client/gateway/prep.rs index 82a096f..7b075b0 100644 --- a/src/client/gateway/prep.rs +++ b/src/client/gateway/prep.rs @@ -127,11 +127,15 @@ pub fn keepalive(interval: u64, .insert("op", OpCode::Heartbeat.num()) .build(); + debug!("Sending heartbeat d: {}", last_sequence); + if let Err(why) = sender.send_json(&map) { warn!("Error sending keepalive: {:?}", why); } } } + debug!("Closing keepalive"); + let _ = sender.get_mut().shutdown(Shutdown::Both); } |