diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-21 12:17:11 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-21 12:17:11 +0200 |
| commit | 4bfee6ef24eab56cf3858581732477e24a51d639 (patch) | |
| tree | 5ae3d0f8bca176815a6ab05bb098d90cbdb009a3 /worker.js | |
| parent | d5bdf32298e1a839e79f2ed7fa863ae6a48b3944 (diff) | |
| download | shrinker-4bfee6ef24eab56cf3858581732477e24a51d639.tar.gz shrinker-4bfee6ef24eab56cf3858581732477e24a51d639.zip | |
hotfix player crash
Diffstat (limited to 'worker.js')
| -rw-r--r-- | worker.js | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -223,6 +223,10 @@ function flatten(obj) { // when player objects end up in the same batch const duplicate = player_records_direct.find( (pr) => pr.api_id == player.api_id); + if (duplicate) { + console.error("duplicate disappeared! please investigate, ignoring for now…"); + return; + } if (duplicate.created_at < player.created_at) { // replace by newer one as below player_records_direct.splice( |
