Skip to content

Commit

Permalink
fix: remove api file if daemon not running
Browse files Browse the repository at this point in the history
  • Loading branch information
hacdias committed Mar 22, 2018
2 parents e93875b + 590c330 commit fef0a51
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ function onStartDaemon (node) {
if (fs.existsSync(lockPath)) {
try {
fs.unlinkSync(lockPath)
fs.unlinkSync(join(config.settingsStore.get('ipfsPath'), 'api'))
} catch (e) {
debug('Could not remove lock. Daemon might be running.')
}
Expand Down

0 comments on commit fef0a51

Please sign in to comment.