git ssb

0+

wanderer🌟 / js-primea-hypervisor



Commit 2b17fc1e77f7651f792fc8e938822e03f54835ec

remove timeoujt

Signed-off-by: wanderer <mjbecze@gmail.com>
wanderer committed on 8/22/2017, 7:40:01 PM
Parent: b2fd5d233ea10a4ff12caa11c6cbedcdcf0fcf59

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