mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-14 09:58:17 +00:00
fix callback arg and CoreSession::sleep to not require a file
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9004 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -370,7 +370,7 @@ SWITCH_DECLARE(switch_bool_t) switch_simple_email(const char *to, const char *fr
|
||||
|
||||
if ((fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC, 0644))) {
|
||||
if (file) {
|
||||
if ((ifd = open(file, O_RDONLY)) < 1) {
|
||||
if ((ifd = open(file, O_RDONLY | O_BINARY)) < 1) {
|
||||
return SWITCH_FALSE;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user