Skip to content
Snippets Groups Projects
Commit ca23ae75 authored by echicken's avatar echicken :chicken:
Browse files

Hold outbound queue until device ready.

parent b41dbd6b
No related branches found
No related tags found
No related merge requests found
...@@ -343,7 +343,7 @@ export default abstract class Device extends js.global.EventEmitter { ...@@ -343,7 +343,7 @@ export default abstract class Device extends js.global.EventEmitter {
// Hot eats, cool treats // Hot eats, cool treats
private dequeue(): void { private dequeue(): void {
if (!this.ready) { if (!this.ready && this.lastWrite > -Infinity) {
this.on('ready', this.dequeue.bind(this)); this.on('ready', this.dequeue.bind(this));
return; return;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment