OpenPerpetuum / PerpetuumServer

The Open Perpetuum Project's fork of the Perpetuum Standalone Server
https://openperpetuum.com
Other
44 stars 21 forks source link

IZ Roaming NPC roam state task running while presence is expiring #381

Closed MikeJeffers closed 3 years ago

MikeJeffers commented 3 years ago

An error can occur if dynamic (expiring) presence is also running a roaming stackFSM where the roaming state, or spawnState for that matter, spawn tasks for their heavier work on the update loop. If these tasks continue they invoke methods on what could be an empty presence.