mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-09-01 03:24:01 +03:00
Crash if we can't allocate incoming connection
This commit is contained in:
+1
-2
@@ -30,8 +30,7 @@ func (p *Proxy) Serve(listener net.Listener) {
|
|||||||
case <-doneChan:
|
case <-doneChan:
|
||||||
return
|
return
|
||||||
default:
|
default:
|
||||||
p.Logger.Errorw("Cannot allocate incoming connection", "error", err)
|
p.Logger.Fatalw("Cannot allocate incoming connection", "error", err)
|
||||||
continue
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user