mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-16 20:02:47 +00:00
fix unlikely failure condition
This commit is contained in:
parent
1b9b3456ad
commit
2e6ce02462
@ -654,8 +654,10 @@ SWITCH_DECLARE(switch_bool_t) switch_simple_email(const char *to,
|
|||||||
}
|
}
|
||||||
if (write(fd, &out, bytes) != bytes) {
|
if (write(fd, &out, bytes) != bytes) {
|
||||||
rval = -1;
|
rval = -1;
|
||||||
} else
|
break;
|
||||||
|
} else {
|
||||||
bytes = 0;
|
bytes = 0;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user