summaryrefslogtreecommitdiff
path: root/script/proto/proto.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/proto/proto.lua')
-rw-r--r--script/proto/proto.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/script/proto/proto.lua b/script/proto/proto.lua
index 7767ec0a..6010ef19 100644
--- a/script/proto/proto.lua
+++ b/script/proto/proto.lua
@@ -46,6 +46,8 @@ function m.responseErr(id, code, message)
log.error('Response id is nil!', util.dump(message))
return
end
+ assert(m.holdon[id])
+ m.holdon[id] = nil
local buf = jsonrpc.encode {
id = id,
error = {