Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
Update stop.js
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddias authored Jun 30, 2017
1 parent 74f3185 commit eb49e32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/components/stop.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
'use strict'

const series = require('async/series')
const setImmediate = require('async/setImmediate')

module.exports = (self) => {
return (callback) => {
callback = callback || function noop () {}
self.log('stop')

if (self.state.state() === 'stopped') {
callback()
return
return callback()
}

const done = (err) => {
Expand Down

0 comments on commit eb49e32

Please sign in to comment.