examples/chat/server: Close connection goroutine on error

This commit is contained in:
Sasha Koshka 2025-10-19 17:47:31 -04:00
parent 14a317c2ab
commit c326a2b6b9

View File

@ -63,7 +63,7 @@ func (this *client) run() {
log.Println("accepted transaction") log.Println("accepted transaction")
if err != nil { if err != nil {
log.Printf("XXX %v failed: %v", this.conn.RemoteAddr(), err) log.Printf("XXX %v failed: %v", this.conn.RemoteAddr(), err)
continue return
} }
go this.runTrans(trans) go this.runTrans(trans)
} }