handle EAGAIN
This commit is contained in:
parent
83f5f36c94
commit
e6aabb3b7e
1 changed files with 3 additions and 0 deletions
|
@ -1651,6 +1651,9 @@ static void transportDataReceived(gpointer data, gint source, PurpleInputConditi
|
|||
ssize_t n = read(source, ptr, sizeof(buffer));
|
||||
#endif
|
||||
if (n <= 0) {
|
||||
if (errno == EAGAIN) {
|
||||
return;
|
||||
}
|
||||
LOG4CXX_INFO(logger, "Diconnecting from spectrum2 server");
|
||||
exit(errno);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue