summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/userprocess.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/userprocess.cpp b/src/userprocess.cpp
index 41a860d9b..c7e7aa545 100644
--- a/src/userprocess.cpp
+++ b/src/userprocess.cpp
@@ -92,7 +92,7 @@ void ProcessUser(userrec* cu)
log(DEBUG,"Data result returned by module: %d",MOD_RESULT);
if (MOD_RESULT < 0)
{
- result = EAGAIN;
+ result = -EAGAIN;
}
else
{
@@ -104,7 +104,7 @@ void ProcessUser(userrec* cu)
result = cu->ReadData(data, 65535);
}
log(DEBUG,"Read result: %d",result);
- if (result)
+ if ((result) && (result != -EAGAIN))
{
ServerInstance->stats->statsRecv += result;
// perform a check on the raw buffer as an array (not a string!) to remove
@@ -247,7 +247,7 @@ void ProcessUser(userrec* cu)
}
}
// result EAGAIN means nothing read
- else if (result == EAGAIN)
+ else if ((result == EAGAIN) || (result == -EAGAIN))
{
}
else if (result == 0)