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