cpuminer: fix stop.
This commit is contained in:
parent
010267e78e
commit
ede25e8c9e
@ -98,6 +98,7 @@ CPUMiner.prototype._close = co(function* close() {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
CPUMiner.prototype.start = function start() {
|
CPUMiner.prototype.start = function start() {
|
||||||
|
assert(!this.running, 'Miner is already running.');
|
||||||
this._start().catch(util.nop);
|
this._start().catch(util.nop);
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -206,7 +207,7 @@ CPUMiner.prototype.stop = co(function* stop() {
|
|||||||
* @returns {Promise}
|
* @returns {Promise}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
CPUMiner.prototype.stop = co(function* stop() {
|
CPUMiner.prototype._stop = co(function* _stop() {
|
||||||
if (!this.running)
|
if (!this.running)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user