make server logging consistent with other logs

This commit is contained in:
Jeremy Latt 2014-02-18 10:22:40 -08:00
parent 58517ad4e8
commit 4f106e7d3e
3 changed files with 12 additions and 13 deletions

View file

@ -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 {