Skip to content

Commit

Permalink
In case server failed to start, do not throw error on remove.
Browse files Browse the repository at this point in the history
This happens when quitting an external app which would tell the dryad tree
to remove everything; even things that were never successfully added.
  • Loading branch information
crucialfelix committed Apr 27, 2016
1 parent 4ae0cd4 commit f84481f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/dryads/SCServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ export default class SCServer extends Dryad {
remove() {
return {
run: (context) => {
return context.scserver.quit();
if (context.scserver) {
return context.scserver.quit();
}
}
};
}
Expand Down

0 comments on commit f84481f

Please sign in to comment.