You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewError("ckb-light-client not started yet!");
103
+
}
99
104
// Why use lock here?
100
105
// light-client-wasm provides synchronous APIs, means if we send a call request through postMessage, onmessage will be called only when the command call resolved.
101
106
// We use lock here to avoid multiple call to postMessage before onmessage fired, to avoid mixed result of different calls
@@ -138,6 +143,7 @@ class LightClient {
138
143
this.dbWorker.terminate();
139
144
this.lightClientWorker.terminate();
140
145
this.stopping=true;
146
+
this.started=false;
141
147
}
142
148
/**
143
149
* Returns the header with the highest block number in the canonical chain
0 commit comments