Commit 09e2549f authored by Robert Ricci's avatar Robert Ricci
Browse files

Fix a bug in replayWrite() - for some reason, it is occasionally

getting called with a length of 0. In this case, write() returning a
0 does not indicate an error.
parent be0a70cf
......@@ -397,6 +397,9 @@ void mainLoop(void)
bool replayWrite(char * source, int size)
{
bool result = true;
if (size == 0) {
return true;
}
int error = write(global::replayfd, source, size);
if (error <= 0)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment