mirror of
https://github.com/p4gefau1t/trojan-go.git
synced 2024-04-21 12:21:34 +00:00
Fix: lock (#320)
This commit is contained in:
@@ -55,6 +55,7 @@ func (s *Server) acceptConnLoop() {
|
||||
Conn: rewindConn,
|
||||
}
|
||||
} else {
|
||||
s.socksLock.RUnlock()
|
||||
log.Debug("http connection")
|
||||
s.httpConn <- &freedom.Conn{
|
||||
Conn: rewindConn,
|
||||
|
||||
@@ -77,6 +77,7 @@ func (s *Server) acceptLoop() {
|
||||
}
|
||||
}
|
||||
} else {
|
||||
s.httpLock.RUnlock()
|
||||
s.connChan <- &Conn{
|
||||
Conn: tcpConn,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user