Skip to content

Commit 2e9fc33

Browse files
committed
VirtDevice::poll mutex unlocked by cond
1 parent 4462303 commit 2e9fc33

File tree

1 file changed

+2
-2
lines changed
  • crates/shadowsocks-service/src/local/tun

1 file changed

+2
-2
lines changed

crates/shadowsocks-service/src/local/tun/tcp.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,9 @@ impl TcpTun {
264264
let manager = manager.clone();
265265
let manager_notify = manager_notify.clone();
266266
thread::spawn(move || {
267-
while manager_notify.running() {
268-
let mut manager_guard = manager.lock();
267+
let mut manager_guard = manager.lock();
269268

269+
while manager_notify.running() {
270270
let TcpSocketManager {
271271
ref mut iface,
272272
ref mut sockets,

0 commit comments

Comments
 (0)