From 6e18ef763405b00c2e5cd32cd93e1f9ed5b4de66 Mon Sep 17 00:00:00 2001 From: Skillet Date: Sat, 4 Mar 2023 23:19:45 -0500 Subject: [PATCH] Fix race condition with connect/disconnect events --- squadjsPlugins/db-log-addOn.js | 1 + 1 file changed, 1 insertion(+) diff --git a/squadjsPlugins/db-log-addOn.js b/squadjsPlugins/db-log-addOn.js index 42b3d13..4b10cde 100644 --- a/squadjsPlugins/db-log-addOn.js +++ b/squadjsPlugins/db-log-addOn.js @@ -167,6 +167,7 @@ export default class DBLogPlayerTime extends DBLog { } async onPlayerDisconnected(info) { + await sleep (500); console.log(info); if(info.player){ await this.models.SteamUser.upsert({