This repository was archived by the owner on Feb 12, 2024. It is now read-only.
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
Error: Not able to stop from state: stopping #2257
Closed
Description
- Version: v0.36.4
- Platform: JS
- Subsystem: state machine
Type: Enhancement
Severity: Medium
Steps to reproduce the error:
calling .stop()
on a node that is already stopping
produces Error: Not able to stop from state: stopping
js-ipfs/src/core/components/stop.js
Lines 16 to 17 in 88f4e26
Proposed change
.stop()
should be idempotent, all subsequent calls should detect stopping
and return promise that resolves when stop
event is emited by the very first .stop()
Y/n?