Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/mobdebug.lua
Original file line number Diff line number Diff line change
Expand Up @@ -511,8 +511,8 @@ local function handle_breakpoint(peer)
if buf:sub(2,2) ~= 'E' then return end

-- need to read few more characters
buf = buf .. readnext(peer, 5-#buf)
if buf ~= 'SETB ' and buf ~= 'DELB ' then return end
if #buf < 5 then buf = buf .. readnext(peer, 5-#buf) end
if buf:sub(1,5) ~= 'SETB ' and buf:sub(1,5) ~= 'DELB ' then return end

local res, _, partial = peer:receive("*l") -- get the rest of the line; blocking
if not res then
Expand Down