We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent caafcbc commit ab1ba43Copy full SHA for ab1ba43
crates/shadowsocks-service/src/local/tun/tcp.rs
@@ -338,7 +338,7 @@ impl TcpTun {
338
}
339
340
341
- if has_received {
+ if has_received && control.recv_waker.is_some() {
342
if let Some(waker) = control.recv_waker.take() {
343
waker.wake();
344
@@ -365,7 +365,7 @@ impl TcpTun {
365
366
367
368
- if has_sent {
+ if has_sent && control.send_waker.is_some() {
369
if let Some(waker) = control.send_waker.take() {
370
371
0 commit comments