summaryrefslogtreecommitdiffstats
path: root/xrdpapi
diff options
context:
space:
mode:
Diffstat (limited to 'xrdpapi')
-rw-r--r--xrdpapi/xrdpapi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xrdpapi/xrdpapi.c b/xrdpapi/xrdpapi.c
index 9310f6f8..c4a0f676 100644
--- a/xrdpapi/xrdpapi.c
+++ b/xrdpapi/xrdpapi.c
@@ -243,11 +243,13 @@ WTSVirtualChannelWrite(void *hChannelHandle, const char *Buffer,
return 0;
}
+#if 0 /* coverity: this is dead code */
/* error, but is it ok to try again? */
if ((rv == EWOULDBLOCK) || (rv == EAGAIN) || (rv == EINPROGRESS))
{
return 0; /* failed to send, but should try again */
}
+#endif
/* fatal error */
return -1;