0
0
Fork 0
mirror of https://github.com/schollz/croc.git synced 2025-10-11 13:21:00 +02:00

bug fix: return if found error

This commit is contained in:
Zack Scholl 2020-10-22 09:59:55 -07:00
parent 3bcc83a8fc
commit 79f85fda9b

View file

@ -102,6 +102,7 @@ func (s *server) run() (err error) {
room, errCommunication := s.clientCommunication(port, c) room, errCommunication := s.clientCommunication(port, c)
if errCommunication != nil { if errCommunication != nil {
log.Debugf("relay-%s: %s", connection.RemoteAddr().String(), errCommunication.Error()) log.Debugf("relay-%s: %s", connection.RemoteAddr().String(), errCommunication.Error())
return
} }
for { for {
// check connection // check connection