diff options
Diffstat (limited to 'main/SAPI.c')
-rw-r--r-- | main/SAPI.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/main/SAPI.c b/main/SAPI.c index 11e92e8e01..006789a474 100644 --- a/main/SAPI.c +++ b/main/SAPI.c @@ -378,15 +378,13 @@ SAPI_API int sapi_flush() if (sapi_module.flush) { SLS_FETCH(); - if (SG(server_context)) { - sapi_module.flush(SG(server_context)); - return SUCCESS; - } + sapi_module.flush(SG(server_context)); + return SUCCESS; + } else { + return FAILURE; } - return FAILURE; } - SAPI_API struct stat *sapi_get_stat() { SLS_FETCH(); |