Fix race condition with connect/disconnect events

This commit is contained in:
Skillet 2023-03-04 23:19:45 -05:00 committed by GitHub
parent ea770d9458
commit 6e18ef7634
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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({