diff options
| author | ruki <[email protected]> | 2019-08-20 17:53:05 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-08-20 17:55:19 +0800 |
| commit | f0edb8798d3c425249792c735eec7655c5eb2b62 (patch) | |
| tree | 7e58f9b477c6fa7844c9f6cef8260b453295aeb7 /core/src/xmake | |
| parent | b4aaf6ec3aa7d2d9d6f21f267a46869d25275d16 (diff) | |
improve file close
Diffstat (limited to 'core/src/xmake')
| -rw-r--r-- | core/src/xmake/io/file_close.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/src/xmake/io/file_close.c b/core/src/xmake/io/file_close.c index 5c7d5c75d..6b3efdd98 100644 --- a/core/src/xmake/io/file_close.c +++ b/core/src/xmake/io/file_close.c @@ -66,8 +66,7 @@ tb_int_t xm_io_file_close(lua_State* lua) #endif // close file - if (!tb_stream_clos(file->file_ref)) - xm_io_file_return_error(lua, "failed to close file"); + tb_stream_clos(file->file_ref); file->file_ref = tb_null; // exit fstream |
