Skip to content
Snippets Groups Projects
Commit b5ebf492 authored by Eric Wykoff's avatar Eric Wykoff
Browse files

Merge branch 'master' into more_fixes

parents 32b7c547 4fbeb2d9
No related branches found
No related tags found
1 merge request!240More fixes
......@@ -606,9 +606,9 @@ end
function _M:orderEntityPoke(o)
self:command("EVLT", "POKE", o.desc:len(), o.data:len(), o.module, o.kind, o.name)
if not self:read("200") then return cprofile.pushEvent("e='EntityPoke' ok=false") end
if not self:read("200") then return cprofile.pushEvent(("e='EntityPoke' ok=false err=%q"):format(self.last_error)) end
self.sock:send(o.desc)
if not self:read("200") then return cprofile.pushEvent("e='EntityPoke' ok=false") end
if not self:read("200") then return cprofile.pushEvent("e='EntityPoke' ok=false err='unknown reason'") end
self.sock:send(o.data)
cprofile.pushEvent("e='EntityPoke' ok=true")
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment