Changeset - e6aabb3b7e27
[Not reviewed]
0 1 0
HanzZ - 13 years ago 2012-08-09 23:11:39
hanzz.k@gmail.com
handle EAGAIN
1 file changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
backends/libpurple/main.cpp
Show inline comments
 
@@ -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);
 
		}
0 comments (0 inline, 0 general)