mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-07 15:15:07 +00:00
fix(callback/js): match callback timeout to lua
This commit is contained in:
1 parent
e61febf7de
commit
cba4b85a29
2 files changed
+2
-2
No files matched your search
@@ -1,7 +1,7 @@
|
||||
import { cache } from '../cache';
|
||||
|
||||
const pendingCallbacks: Record<string, (...args: any[]) => void> = {};
|
||||
const callbackTimeout = GetConvarInt('ox:callbackTimeout', 60000);
|
||||
const callbackTimeout = GetConvarInt('ox:callbackTimeout', 300000);
|
||||
|
||||
onNet(`__ox_cb_${cache.resource}`, (key: string, ...args: any) => {
|
||||
const resolve = pendingCallbacks[key];
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { cache } from '../cache';
|
||||
|
||||
const pendingCallbacks: Record<string, (...args: any[]) => void> = {};
|
||||
const callbackTimeout = GetConvarInt('ox:callbackTimeout', 60000);
|
||||
const callbackTimeout = GetConvarInt('ox:callbackTimeout', 300000);
|
||||
|
||||
onNet(`__ox_cb_${cache.resource}`, (key: string, ...args: any) => {
|
||||
const resolve = pendingCallbacks[key];
|
||||
|
||||
Reference in new issue
Block a user