@@ -354,7 +354,7 @@ export class SolidObjectsRuntime {
354354 options : { timeout : number ; deadline : number } ,
355355 ) : Promise < DeepReadonly < Result > > {
356356 this . callerWorker ??= new Worker ( this )
357- while ( performance . now ( ) <= options . deadline ) {
357+ while ( performance . now ( ) < options . deadline ) {
358358 const message = await this . repository . findMessage ( messageReference . id )
359359 if ( ! message || message . request_id !== messageReference . requestId ) {
360360 throw new Error ( "message reference no longer identifies this invocation" )
@@ -401,20 +401,21 @@ export class SolidObjectsRuntime {
401401 instance . activation_owner_id !== null &&
402402 instance . activation_expires_at_ms !== null &&
403403 Number ( instance . activation_expires_at_ms ) > diagnostics . nowMilliseconds
404- const waitingOn = instance . paused
405- ? ( "actorPaused" as const )
406- : activationLive
407- ? ( "activationHeld" as const )
408- : blocker
409- ? ( "earlierMessage" as const )
410- : diagnostics . status === "claimed"
411- ? ( "messageClaimed" as const )
412- : diagnostics . readyAvailableAtMilliseconds !== undefined &&
413- diagnostics . readyAvailableAtMilliseconds > diagnostics . nowMilliseconds
414- ? ( "notYetAvailable" as const )
415- : diagnostics . status === "ready"
416- ? ( "readyUnclaimed" as const )
417- : ( "unknown" as const )
404+ const waitingOn =
405+ Number ( instance . paused ) !== 0
406+ ? ( "actorPaused" as const )
407+ : activationLive
408+ ? ( "activationHeld" as const )
409+ : blocker
410+ ? ( "earlierMessage" as const )
411+ : diagnostics . status === "claimed"
412+ ? ( "messageClaimed" as const )
413+ : diagnostics . readyAvailableAtMilliseconds !== undefined &&
414+ diagnostics . readyAvailableAtMilliseconds > diagnostics . nowMilliseconds
415+ ? ( "notYetAvailable" as const )
416+ : diagnostics . status === "ready"
417+ ? ( "readyUnclaimed" as const )
418+ : ( "unknown" as const )
418419 const error = new SyncTimeout ( {
419420 details : {
420421 timeoutMilliseconds,
0 commit comments