Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions src/factory-in-proc.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,6 @@ class FactoryInProc {
delete daemonOptions.config.Addresses
}

if (typeof daemonOptions.exec !== 'function') {
throw new Error('\'type\' proc requires \'exec\' to be a coderef')
}

const node = new InProc(daemonOptions)

if (daemonOptions.init) {
Expand Down
3 changes: 1 addition & 2 deletions src/ipfsd-daemon.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,7 @@ class Daemon {
if (!this.subprocess) {
return this
}
await this.api.stop()
// TODO this should call this.api.stop

await this.killProcess(timeout)

if (this.disposable) {
Expand Down