mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-06 10:16:40 -05:00
check accepting in http
This commit is contained in:
parent
e2623e65dd
commit
4a7f45113a
@ -59,6 +59,9 @@ func (this *HttpProxyServer) Listen(port v2net.Port) error {
|
||||
func (this *HttpProxyServer) accept() {
|
||||
for this.accepting {
|
||||
retry.Timed(100 /* times */, 100 /* ms */).On(func() error {
|
||||
if !this.accepting {
|
||||
return nil
|
||||
}
|
||||
this.Lock()
|
||||
defer this.Unlock()
|
||||
if this.tcpListener != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user