serenity-rs / songbird

An async Rust library for the Discord voice API
ISC License
391 stars 111 forks source link

Driver: Fix multiple disconnect events on `leave` #233

Closed FelixMcFelix closed 6 months ago

FelixMcFelix commented 6 months ago

Fixes behaviour where a Driver which was asked to leave an active call would receive the disconnect event several times: once when we started the disconnect, and once again when Discord killed the WS client.