Skip to content

Commit 37ffdec

Browse files
committed
Fix linux crash issue
1 parent 5b360c6 commit 37ffdec

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ number asyncio.AsyncRead( string fileName, string gamePath, function callback )
6868
local data = "Hello World!"
6969

7070
local ok = asyncio.AsyncWrite("example.txt", data, function(fileName, gamePath, status)
71-
local ok = asyncio.AsyncRead(filename, gamePath, function(fileName, gamePath, status, fileContent)
71+
local ok = asyncio.AsyncRead(fileName, gamePath, function(fileName, gamePath, status, fileContent)
7272
print(status, status == FSASYNC_OK) -- 0 true
7373
print(fileContent) -- Hello World!
7474
print(data == fileContent) -- true

source/main.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ namespace AsyncIO {
2121
return false;
2222

2323
Tasks.push_back(std::move(task));
24+
return true;
2425
}
2526
}
2627

0 commit comments

Comments
 (0)