mirror of
https://github.com/AsgardEternal/SquadJSDocker.git
synced 2025-01-02 13:19:20 -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) {
|
async onPlayerDisconnected(info) {
|
||||||
|
await sleep (500);
|
||||||
console.log(info);
|
console.log(info);
|
||||||
if(info.player){
|
if(info.player){
|
||||||
await this.models.SteamUser.upsert({
|
await this.models.SteamUser.upsert({
|
||||||
|
Loading…
Reference in New Issue
Block a user