mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
make server logging consistent with other logs
This commit is contained in:
parent
58517ad4e8
commit
4f106e7d3e
3 changed files with 12 additions and 13 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue