Revision 1500 libsylph/session.c

session.c (revision 1500)
276 276
		}
277 277
		if (tv_result.tv_sec * G_USEC_PER_SEC + tv_result.tv_usec >
278 278
		    G_USEC_PER_SEC) {
279
			SockFlags save_flags;
280

  
279 281
			debug_print("state machine freeze for 1 second detected, forcing dispatch.\n");
282
			save_flags = sock->flags;
283
			SOCK_UNSET_FLAGS(sock->flags, SOCK_CHECK_IO);
280 284
			sock->callback(sock, sock->condition, sock->data);
285
			sock->flags = save_flags;
281 286
		}
282 287
	}
283 288

  

Also available in: Unified diff