fix cli belt mode
This commit is contained in:
parent
ef88a1be9a
commit
1126c24aa1
2 changed files with 3 additions and 1 deletions
|
|
@ -121,6 +121,7 @@ class Engine {
|
||||||
return new Promise((accept, reject) => {
|
return new Promise((accept, reject) => {
|
||||||
KIRI.client.clear();
|
KIRI.client.clear();
|
||||||
KIRI.client.sync([ this.widget ]);
|
KIRI.client.sync([ this.widget ]);
|
||||||
|
KIRI.client.rotate(this.settings);
|
||||||
KIRI.client.slice(this.settings, this.widget, msg => {
|
KIRI.client.slice(this.settings, this.widget, msg => {
|
||||||
this.listener({slice:msg});
|
this.listener({slice:msg});
|
||||||
if (msg.error) {
|
if (msg.error) {
|
||||||
|
|
@ -130,6 +131,7 @@ class Engine {
|
||||||
accept(this);
|
accept(this);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
KIRI.client.unrotate(this.settings);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue