Browse Source

chore: small cleanup

tags/v0.12.0
Shaun 1 year ago
parent
commit
624678cb4b
1 changed files with 1 additions and 5 deletions
  1. +1
    -5
      src/server/world/threadManager.js

+ 1
- 5
src/server/world/threadManager.js View File

@@ -195,11 +195,7 @@ const killThread = thread => {
const spawnMapThreads = async () => {
const promises = mapList
.filter(m => !m.disabled && !m.instanced)
.map(m => {
return new Promise(async res => {
await spawnThread(m);
});
});
.map(m => spawnThread(m));

await Promise.all(promises);
};


Loading…
Cancel
Save