Fix: lock (#320)

This commit is contained in:
Loyalsoldier
2021-05-05 10:44:36 +08:00
committed by GitHub
parent 5eb0878f13
commit ce854d15d5
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -55,6 +55,7 @@ func (s *Server) acceptConnLoop() {
Conn: rewindConn,
}
} else {
s.socksLock.RUnlock()
log.Debug("http connection")
s.httpConn <- &freedom.Conn{
Conn: rewindConn,
+1
View File
@@ -77,6 +77,7 @@ func (s *Server) acceptLoop() {
}
}
} else {
s.httpLock.RUnlock()
s.connChan <- &Conn{
Conn: tcpConn,
}