mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-25 15:53:09 -06:00
Stop panics
This commit is contained in:
parent
8a53352b03
commit
fba64a28dc
|
|
@ -123,12 +123,14 @@ func main() {
|
|||
for {
|
||||
conn, err := listener.Accept()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
logrus.WithError(err).Error("listener.Accept failed")
|
||||
continue
|
||||
}
|
||||
|
||||
port, err := pSwitch.AuthenticatedConnect(conn, "")
|
||||
if err != nil {
|
||||
panic(err)
|
||||
logrus.WithError(err).Error("pSwitch.AuthenticatedConnect failed")
|
||||
continue
|
||||
}
|
||||
|
||||
fmt.Println("Inbound connection", conn.RemoteAddr(), "is connected to port", port)
|
||||
|
|
|
|||
Loading…
Reference in a new issue