aboutsummaryrefslogtreecommitdiffstats
path: root/src/teamspeak
diff options
context:
space:
mode:
authorJokler <jokler@protonmail.com>2020-03-15 00:19:48 +0100
committerGitHub <noreply@github.com>2020-03-15 00:19:48 +0100
commitfd5d026849517e1296d592412db64437b454570d (patch)
tree4591e2899f99d4a7543d18d4349356855bacae6a /src/teamspeak
parent73b89cdebf7eb041bbf6c8322d6dc74a045437e4 (diff)
parent4e21655346e438b74349c0911cfa261e06b82ee9 (diff)
downloadpokebot-fd5d026849517e1296d592412db64437b454570d.tar.gz
pokebot-fd5d026849517e1296d592412db64437b454570d.zip
Merge pull request #45 from Mavulp/fix-shutdown
Fix shutdown freezing the bot
Diffstat (limited to 'src/teamspeak')
-rw-r--r--src/teamspeak/mod.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/teamspeak/mod.rs b/src/teamspeak/mod.rs
index 7551e77..4d31f2e 100644
--- a/src/teamspeak/mod.rs
+++ b/src/teamspeak/mod.rs
@@ -1,5 +1,4 @@
use std::sync::{Arc, RwLock};
-use std::time::{Duration, Instant};
use futures::compat::Future01CompatExt;
use futures01::{future::Future, sink::Sink};
@@ -224,9 +223,5 @@ impl TeamSpeakConnection {
.disconnect(opt)
.map_err(|e| error!("Failed to send message: {}", e)),
);
- // Might or might not be required to keep tokio running while the bot disconnects
- tokio::spawn(
- tokio::timer::Delay::new(Instant::now() + Duration::from_secs(1)).map_err(|_| ()),
- );
}
}