summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/src/rpc.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/src/rpc.lua b/server/src/rpc.lua
index 99d96938..91b30bf5 100644
--- a/server/src/rpc.lua
+++ b/server/src/rpc.lua
@@ -75,7 +75,9 @@ local function recieve(self, proto)
log.warn('Recieve: ', table.dump(proto.error))
return
end
- data.callback(proto.result)
+ if data.callback then
+ data.callback(proto.result)
+ end
end
return {