mirror of
https://github.com/AsgardEternal/SquadJSDocker.git
synced 2024-12-30 15:19:18 -06:00
Fix race condition with connect/disconnect events
This commit is contained in:
parent
ea770d9458
commit
6e18ef7634
@ -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({
|
||||
|
Loading…
Reference in New Issue
Block a user