git ssb

0+

wanderer🌟 / js-primea-hypervisor



Commit 66df0eab8d15d49d023146aa317bc8ed5a517cd1

remove timeoujt

Signed-off-by: wanderer <mjbecze@gmail.com>
wanderer committed on 8/17/2017, 2:24:18 AM
Parent: e522215a494194cd9440b49cad344da47319e914

Files changed

kernel.jschanged
portManager.jschanged
kernel.jsView
@@ -18,9 +18,8 @@
1818 this.code = opts.code
1919 this.hypervisor = opts.hypervisor
2020 this.id = opts.id
2121 this.container = new opts.container.Constructor(this, opts.container.args)
22- this.timeout = 0
2322
2423 this.ticks = 0
2524 this.containerState = 'idle'
2625
@@ -51,9 +50,9 @@
5150 if (this.containerState !== 'running') {
5251 this.containerState = 'running'
5352
5453 while (1) {
55- const message = await this.ports.getNextMessage(this.timeout)
54+ const message = await this.ports.getNextMessage()
5655 if (!message) break
5756
5857 // dequqe message
5958 message.fromPort.messages.shift()
portManager.jsView
@@ -185,8 +185,12 @@
185185 return port.messages[0]
186186 }
187187 }
188188
189+ waitOnPort (port, timeout) {
190+
191+ }
192+
189193 /**
190194 * Waits for the the next message if any
191195 * @returns {Promise}
192196 */

Built with git-ssb-web