mirror of
https://github.com/jeremyd/ergo.git
synced 2026-07-13 03:28:09 -07:00
make server logging consistent with other logs
This commit is contained in:
+4
-6
@@ -76,9 +76,6 @@ func (socket *Socket) readLines() {
|
||||
|
||||
close(socket.receive)
|
||||
socket.Close()
|
||||
if DEBUG_NET {
|
||||
log.Printf("%s closed", socket)
|
||||
}
|
||||
}
|
||||
|
||||
func (socket *Socket) writeLines() {
|
||||
@@ -105,13 +102,14 @@ func (socket *Socket) writeLines() {
|
||||
}
|
||||
}
|
||||
|
||||
if DEBUG_NET {
|
||||
log.Printf("%s closing", socket)
|
||||
}
|
||||
if done {
|
||||
socket.conn.Close()
|
||||
}
|
||||
|
||||
if DEBUG_NET {
|
||||
log.Printf("%s closed", socket)
|
||||
}
|
||||
|
||||
// read incoming messages and discard to avoid hangs
|
||||
for {
|
||||
select {
|
||||
|
||||
Reference in New Issue
Block a user