Selaa lähdekoodia

Do not ignore write errors

tags/0.2
Graham Barr 10 vuotta sitten
vanhempi
commit
7bcc4de76f
1 muutettua tiedostoa jossa 5 lisäystä ja 1 poistoa
  1. +5
    -1
      client/client.go

+ 5
- 1
client/client.go Näytä tiedosto

@@ -194,7 +194,11 @@ func (client *Client) do(funcname string, data []byte,
id := IdGen.Id()
req := getJob(id, []byte(funcname), data)
req.DataType = flag
client.write(req)
if err = client.write(req); err != nil {
delete(client.innerHandler, "c")
client.lastcall = ""
return
}
mutex.Lock()
return
}


Loading…
Peruuta
Tallenna