Skip to content

Commit

Permalink
#174 (fix): Moves do_return after no-async lock (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
miversen33 authored Jan 5, 2024
1 parent cd5b2c4 commit 6f1e268
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/netman/tools/shell.lua
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,6 @@ function Shell:run(timeout)
self:close()
end)
end
::do_return::
if not self._is_async then
while self._running do
uv.run('once')
Expand All @@ -400,6 +399,7 @@ function Shell:run(timeout)
return self:dump_self_to_table()
---@diagnostic disable-next-line: missing-return
end
::do_return::
return {pid=self._pid, handle=self.handle}
end

Expand Down

0 comments on commit 6f1e268

Please sign in to comment.