diff options
| author | Rubens Brandao <git@rubens.io> | 2021-04-06 20:18:55 +0200 |
|---|---|---|
| committer | Rubens Brandao <git@rubens.io> | 2021-04-06 20:18:55 +0200 |
| commit | e01383af1c417666d42a802e44a1d1e98bbcf14e (patch) | |
| tree | e4a53b7976e7353b879dc76f7e6ab1846a4105e0 /mumd/src/network/udp.rs | |
| parent | 48f0d381b0b9a5e8a81e4a62a4912865a3081af6 (diff) | |
| download | mum-e01383af1c417666d42a802e44a1d1e98bbcf14e.tar.gz | |
Fix the import location and a possible deadlock
Diffstat (limited to 'mumd/src/network/udp.rs')
| -rw-r--r-- | mumd/src/network/udp.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mumd/src/network/udp.rs b/mumd/src/network/udp.rs index 1b5c373..cc085b5 100644 --- a/mumd/src/network/udp.rs +++ b/mumd/src/network/udp.rs @@ -9,12 +9,12 @@ use mumble_protocol::crypt::ClientCryptState; use mumble_protocol::ping::{PingPacket, PongPacket}; use mumble_protocol::voice::VoicePacket; use mumble_protocol::Serverbound; -use std::{collections::HashMap, sync::RwLock}; +use std::collections::HashMap; use std::convert::TryFrom; use std::net::{Ipv6Addr, SocketAddr}; use std::rc::Rc; use std::sync::atomic::{AtomicU64, Ordering}; -use std::sync::Arc; +use std::sync::{Arc, RwLock}; use tokio::{join, net::UdpSocket}; use tokio::sync::{mpsc, watch, Mutex}; use tokio::time::{interval, Duration}; |
