Don't panic if replay server is not responding

This commit is contained in:
Leonid Bugaev
2013-10-30 12:48:07 +01:00
parent 95d3676d83
commit 8b9c72ef9e
+3 -1
View File
@@ -20,7 +20,9 @@ func (o *TCPOutput) Write(data []byte) (n int, err error) {
conn, err := o.connect(o.address)
defer conn.Close()
n, err = conn.Write(data)
if err != nil {
n, err = conn.Write(data)
}
return
}