From cba4b85a2958f68a93211676eaeee88fa2d0dcd8 Mon Sep 17 00:00:00 2001 From: Linden <65407488+thelindat@users.noreply.github.com> Date: Sun, 6 Oct 2024 03:28:28 +1100 Subject: [PATCH] fix(callback/js): match callback timeout to lua --- package/client/resource/callback/index.ts | 2 +- package/server/resource/callback/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package/client/resource/callback/index.ts b/package/client/resource/callback/index.ts index 17eef36..23dcb09 100644 --- a/package/client/resource/callback/index.ts +++ b/package/client/resource/callback/index.ts @@ -1,7 +1,7 @@ import { cache } from '../cache'; const pendingCallbacks: Record 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]; diff --git a/package/server/resource/callback/index.ts b/package/server/resource/callback/index.ts index ffc9534..6b24fa6 100644 --- a/package/server/resource/callback/index.ts +++ b/package/server/resource/callback/index.ts @@ -1,7 +1,7 @@ import { cache } from '../cache'; const pendingCallbacks: Record 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];