Parcourir la source

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

parazyd il y a 2 ans
Parent
commit
65df99394b
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  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) => {