git ssb

0+

wanderer🌟 / js-primea-hypervisor



Commit 1be1cba2ec920cea5294cc3638577a736d106be5

rename containerState -> running

wanderer committed on 11/21/2017, 11:18:23 PM
Parent: 67c9bed0cd1069c22fa25d29409522cfc5da85af

Files changed

actor.jschanged
actor.jsView
@@ -24,9 +24,9 @@
2424 hypervisor: opts.hypervisor
2525 })
2626
2727 this.ticks = 0
28- this.containerState = 'idle'
28+ this.running = false
2929
3030 this.caps = new CapsManager(opts.state.caps)
3131 }
3232
@@ -67,10 +67,10 @@
6767
6868 // waits for the next message
6969 async _startMessageLoop () {
7070 // this ensure we only every have one loop running at a time
71- if (this.containerState !== 'running') {
72- this.containerState = 'running'
71+ if (!this.running) {
72+ this.running = true
7373 while (1) {
7474 const message = await this.inbox.nextMessage()
7575 if (!message) break
7676
@@ -83,9 +83,9 @@
8383 // run the next message
8484 await this.message(message)
8585 }
8686
87- this.containerState = 'idle'
87+ this.running = false
8888 this.container.onIdle()
8989 }
9090 }
9191

Built with git-ssb-web