summaryrefslogtreecommitdiff
path: root/script/service.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/service.lua')
-rw-r--r--script/service.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/script/service.lua b/script/service.lua
index 208a538f..b5db8080 100644
--- a/script/service.lua
+++ b/script/service.lua
@@ -784,18 +784,17 @@ function mt:_loadProto()
while true do
local ok, protoStream = self._proto:pop()
if not ok then
- goto CONTINUE
+ break
end
local suc, proto = xpcall(json.decode, log.error, protoStream)
if not suc then
- goto CONTINUE
+ break
end
if proto.method then
self:_doProto(proto)
else
rpc:recieve(proto)
end
- ::CONTINUE::
end
end