Changeset 2613 for neercs


Ignore:
Timestamp:
Jul 31, 2008, 12:42:34 AM (12 years ago)
Author:
Pascal Terjan
Message:
  • Handle events even if we get flooded on the socket
File:
1 edited

Legend:

Unmodified
Added
Removed
  • neercs/trunk/src/main.c

    r2596 r2613  
    389389        char buf[128*1024];
    390390
    391         while (screen_list->c_socket && (n = read(screen_list->c_socket, buf, sizeof(buf)-1)) > 0)
     391        if (screen_list->c_socket && (n = read(screen_list->c_socket, buf, sizeof(buf)-1)) > 0)
    392392        {
    393393            buf[n] = 0;
Note: See TracChangeset for help on using the changeset viewer.