940 |
/* only delete link if all data has been transfered */ |
/* only delete link if all data has been transfered */ |
941 |
/* or if result was 0 and status success - EOF */ |
/* or if result was 0 and status success - EOF */ |
942 |
if ((iorq->partial_len == iorq->length) || |
if ((iorq->partial_len == iorq->length) || |
943 |
(result == 0)) |
(g_rdpdr_device[iorq->device].device_type == |
944 |
|
DEVICE_TYPE_SERIAL) || (result == 0)) |
945 |
{ |
{ |
946 |
#if WITH_DEBUG_RDP5 |
#if WITH_DEBUG_RDP5 |
947 |
DEBUG(("RDPDR: AIO total %u bytes read of %u\n", iorq->partial_len, iorq->length)); |
DEBUG(("RDPDR: AIO total %u bytes read of %u\n", iorq->partial_len, iorq->length)); |