Skip to content

Commit

Permalink
refactor(callback): increase default timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
thelindat committed May 20, 2024
1 parent 080a9c2 commit a40be54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion imports/callback/client.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
local pendingCallbacks = {}
local timers = {}
local cbEvent = '__ox_cb_%s'
local callbackTimeout = GetConvarInt('ox:callbackTimeout', 60000)
local callbackTimeout = GetConvarInt('ox:callbackTimeout', 300000)

RegisterNetEvent(cbEvent:format(cache.resource), function(key, ...)
local cb = pendingCallbacks[key]
Expand Down
2 changes: 1 addition & 1 deletion imports/callback/server.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
local pendingCallbacks = {}
local cbEvent = '__ox_cb_%s'
local callbackTimeout = GetConvarInt('ox:callbackTimeout', 60000)
local callbackTimeout = GetConvarInt('ox:callbackTimeout', 300000)

RegisterNetEvent(cbEvent:format(cache.resource), function(key, ...)
local cb = pendingCallbacks[key]
Expand Down

0 comments on commit a40be54

Please sign in to comment.