Explorar o código

net/transport/tor: Release stream Mutex lock after obtaining a RendRequest

parazyd %!s(int64=2) %!d(string=hai) anos
pai
achega
65df99394b
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/net/transport/tor.rs

+ 2 - 0
src/net/transport/tor.rs

@@ -225,6 +225,8 @@ impl PtListener for TorListenerIntern {
             return Err(io::Error::new(ErrorKind::ConnectionAborted, "Connection Aborted"))
         };
 
+        drop(rendreq_stream);
+
         let mut streamreq_stream = match rendrequest.accept().await {
             Ok(v) => v,
             Err(e) => {