@rivetkit/engine-runner 2.2.1-pr.4600.f4b52ef → 2.2.2-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/mod.js CHANGED
@@ -1593,6 +1593,7 @@ var Runner = class {
1593
1593
  sleepActor(actorId, generation) {
1594
1594
  const actor = this.getActor(actorId, generation);
1595
1595
  if (!actor) return;
1596
+ actor.stopIntentSent = true;
1596
1597
  this.#sendActorIntent(actorId, actor.generation, "sleep");
1597
1598
  }
1598
1599
  async stopActor(actorId, generation) {
@@ -2297,6 +2298,8 @@ var Runner = class {
2297
2298
  const stopCommand = commandWrapper.inner.val;
2298
2299
  const actorId = commandWrapper.checkpoint.actorId;
2299
2300
  const generation = commandWrapper.checkpoint.generation;
2301
+ const actor = this.getActor(actorId, generation);
2302
+ if (actor) actor.stopIntentSent = true;
2300
2303
  await this.forceStopActor(actorId, generation);
2301
2304
  }
2302
2305
  #sendActorIntent(actorId, generation, intentType) {