diff options
Diffstat (limited to 'server/src/rpc.lua')
-rw-r--r-- | server/src/rpc.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/server/src/rpc.lua b/server/src/rpc.lua index 91b30bf5..2456cbd3 100644 --- a/server/src/rpc.lua +++ b/server/src/rpc.lua @@ -67,8 +67,10 @@ local function recieve(self, proto) BUF[id] = nil if data.timeout and os.clock() > data.timeout then log.warn('Recieve timeout: ', table.dump(proto)) - local info = debug.getinfo(data.callback, 'S') - log.warn('Call back info: ', info.source, info.linedefined) + if data.callback then + local info = debug.getinfo(data.callback, 'S') + log.warn('Call back info: ', info.source, info.linedefined) + end return end if proto.error then |