diff options
| author | Eskil Queseth <eskilq@kth.se> | 2020-10-16 01:43:13 +0200 |
|---|---|---|
| committer | Eskil Queseth <eskilq@kth.se> | 2020-10-16 01:43:13 +0200 |
| commit | 7e8e67edb7d6ac66fd6073c55053a4e8234710e8 (patch) | |
| tree | 4c8e04f4b1a031adaf46d39197675d4e500338bd /mumd/src/audio.rs | |
| parent | d38696eaef440f551fde00e91d73e192d1e8e89b (diff) | |
| parent | 18a3c0b3cf8254b70857e31ddd2b6213b10db156 (diff) | |
| download | mum-7e8e67edb7d6ac66fd6073c55053a4e8234710e8.tar.gz | |
Merge remote-tracking branch 'origin/main' into error-handling
Diffstat (limited to 'mumd/src/audio.rs')
| -rw-r--r-- | mumd/src/audio.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mumd/src/audio.rs b/mumd/src/audio.rs index 1445415..edc2f7f 100644 --- a/mumd/src/audio.rs +++ b/mumd/src/audio.rs @@ -191,6 +191,10 @@ impl Audio { pub fn take_receiver(&mut self) -> Option<Receiver<VoicePacketPayload>> { self.input_channel_receiver.take() } + + pub fn clear_clients(&mut self) { + self.client_streams.lock().unwrap().clear(); + } } impl ClientStream { |
