trymnilsen / kingdomarchitect

Medieval simulation/city builder game for the browser.
https://kingdomarchitect.netlify.app
MIT License
13 stars 2 forks source link

Abort the job if it fails to suspend #177

Open github-actions[bot] opened 4 weeks ago

github-actions[bot] commented 4 weeks ago

https://github.com/trymnilsen/kingdomarchitect/blob/b709b7e6d1bb27f0fd76d52b2a77856c4e0e10d6/ts/src/game/component/job/jobRunnerComponent.ts#L48


                try {
                    currentJob.onSuspend();
                } catch (e) {
                    //TODO: Abort the job if it fails to suspend
                    console.error("Failed to suspend job", e, currentJob);
                }
            } else {