Ver código fonte

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

parazyd 2 anos atrás
pai
commit
65df99394b
1 arquivos alterados com 2 adições e 0 exclusões
  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) => {