This commit is contained in:
bitfl0wer 2024-01-21 17:07:30 +01:00
parent 36ac6c1e5e
commit 0660e25bdb
No known key found for this signature in database
GPG Key ID: 0ACD574FCF5226CF
2 changed files with 3 additions and 3 deletions

View File

@ -31,8 +31,8 @@ async fn main() {
identify.token = token;
// Send off the event
gateway.send_identify(identify).await;
gateway.send_identify(identify).await;
// Do something on the main thread so we don't quit
loop {
sleep(Duration::from_secs(3600)).await;

View File

@ -71,7 +71,7 @@ impl HeartbeatHandler {
let mut last_heartbeat_timestamp: Instant = Instant::now();
let mut last_heartbeat_acknowledged = true;
let mut last_seq_number: Option<u64> = None;
loop {
if kill_receive.try_recv().is_ok() {
trace!("GW: Closing heartbeat task");