Skip to content

Commit

Permalink
fix(callback/js): match callback timeout to lua
Browse files Browse the repository at this point in the history
  • Loading branch information
thelindat committed Oct 5, 2024
1 parent e61febf commit cba4b85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package/client/resource/callback/index.ts
Original file line number Diff line number Diff line change
@@ -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];
Expand Down
2 changes: 1 addition & 1 deletion package/server/resource/callback/index.ts
Original file line number Diff line number Diff line change
@@ -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];
Expand Down

0 comments on commit cba4b85

Please sign in to comment.