Catch GDL90Report network error, useful for troubleshooting

pull/465/head
Eric Westphal 2016-07-18 22:49:30 -04:00
rodzic a7bb43d6ba
commit be30aefa79
1 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -135,7 +135,11 @@ func sendToAllConnectedClients(msg networkMessage) {
if sleepFlag {
continue
}
netconn.Conn.Write(msg.msg) // Write immediately.
_, err := netconn.Conn.Write(msg.msg) // Write immediately.
if err != nil {
//TODO: Maybe we should drop the client? Retry first?
log.Printf("GDL Message error: %s\n", err.Error())
}
totalNetworkMessagesSent++
globalStatus.NetworkDataMessagesSent++
globalStatus.NetworkDataMessagesSentNonqueueable++