Skip to content

Commit

Permalink
Fix: lock (p4gefau1t#320)
Browse files Browse the repository at this point in the history
  • Loading branch information
Loyalsoldier authored May 5, 2021
1 parent 5eb0878 commit ce854d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tunnel/adapter/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ func (s *Server) acceptConnLoop() {
Conn: rewindConn,
}
} else {
s.socksLock.RUnlock()
log.Debug("http connection")
s.httpConn <- &freedom.Conn{
Conn: rewindConn,
Expand Down
1 change: 1 addition & 0 deletions tunnel/transport/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ func (s *Server) acceptLoop() {
}
}
} else {
s.httpLock.RUnlock()
s.connChan <- &Conn{
Conn: tcpConn,
}
Expand Down

0 comments on commit ce854d1

Please sign in to comment.