Skip to content

Commit

Permalink
fixes bug
Browse files Browse the repository at this point in the history
  • Loading branch information
actboy168 committed Apr 3, 2024
1 parent 85543c4 commit 3b54497
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion binding/lua_thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ namespace bee::lua_thread {

static int lchannel_pop(lua_State* L) {
auto& bc = lua::checkudata<boxchannel>(L, 1);
if (lua_gettop(L) == 1) {
if (lua_isnoneornil(L, 2)) {
void* data;
if (!bc->pop(data)) {
lua_pushboolean(L, 0);
Expand Down

0 comments on commit 3b54497

Please sign in to comment.