begin_critical_section(S_SESSION_TABLE);
for (ptr = ContextList; ptr != NULL; ptr = ptr->next) {
if ( (FD_ISSET(ptr->client_socket, &readfds))
- && (ptr->state != CON_EXECUTING) ) {
+ && (ptr->state == CON_IDLE) ) {
ptr->input_waiting = 1;
if (!bind_me) {
bind_me = ptr; /* I choose you! */