examples/chat/server: Close connection goroutine on error
This commit is contained in:
parent
14a317c2ab
commit
c326a2b6b9
@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user