--- sourceforge.net/trunk/rdesktop/rdpdr.c 2004/08/09 13:50:41 747 +++ sourceforge.net/trunk/rdesktop/rdpdr.c 2004/08/24 21:37:25 755 @@ -940,7 +940,8 @@ /* only delete link if all data has been transfered */ /* or if result was 0 and status success - EOF */ if ((iorq->partial_len == iorq->length) || - (result == 0)) + (g_rdpdr_device[iorq->device].device_type == + DEVICE_TYPE_SERIAL) || (result == 0)) { #if WITH_DEBUG_RDP5 DEBUG(("RDPDR: AIO total %u bytes read of %u\n", iorq->partial_len, iorq->length));