server: Fix 0 timeout handling for serial I/O.

This commit is contained in:
Reinhard Karcher 2007-01-01 17:47:04 +01:00 committed by Alexandre Julliard
parent dff43b732b
commit 41c93895b8
1 changed files with 1 additions and 1 deletions

View File

@ -272,7 +272,7 @@ static void serial_queue_async( struct fd *fd, void *apc, void *user, void *iosb
}
add_timeout( &when, timeout );
if (!create_async( current, &when, queue, apc, user, iosb )) return;
if (!create_async( current, timeout ? &when : NULL, queue, apc, user, iosb )) return;
/* Check if the new pending request can be served immediately */
events = check_fd_events( fd, serial_get_poll_events( fd ) );