Skip to content

Commit

Permalink
fix#180
Browse files Browse the repository at this point in the history
  • Loading branch information
sniper00 committed Sep 10, 2024
1 parent 6614ef3 commit 9896aaf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lualib/moon/db/socketchannel.lua
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ end

function socketchannel:request(req,resp)
socket.write(self._fd, req)
if resp == nil then
-- no response
return
end
if self._opts.response then
if resp == nil then
-- no response
return
end
self._threads[resp] = coroutine.running()
local ok, data = moon.wait()
if not ok then
Expand Down

0 comments on commit 9896aaf

Please sign in to comment.