aboutsummaryrefslogtreecommitdiff
path: root/src/client/gateway/shard.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/gateway/shard.rs')
-rw-r--r--src/client/gateway/shard.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/gateway/shard.rs b/src/client/gateway/shard.rs
index a51c2dc..e4c4720 100644
--- a/src/client/gateway/shard.rs
+++ b/src/client/gateway/shard.rs
@@ -477,6 +477,8 @@ impl Shard {
Ok(())
}
+ /// Uncleanly shuts down the receiver by not sending a close code.
+ #[doc(hidden)]
pub fn shutdown(receiver: &mut Receiver<WebSocketStream>) -> Result<()> {
let r = receiver.get_mut().get_mut();