from nicm: : handle msgbuf_write() returning EAGAIN

This commit is contained in:
benno
2013-11-13 20:43:36 +00:00
parent f0ed61f53c
commit 7624800ddc
2 changed files with 4 additions and 2 deletions

View File

@ -464,7 +464,7 @@ client_callback(unused int fd, short events, void *data)
}
if (events & EV_WRITE) {
if (msgbuf_write(&client_ibuf.w) < 0)
if (msgbuf_write(&client_ibuf.w) < 0 && errno != EAGAIN)
goto lost_server;
}