Skip to content

Commit

Permalink
Merge pull request #38 from darrinholst/stop-process
Browse files Browse the repository at this point in the history
don't need to call poll_for_exit when stopping server
  • Loading branch information
netzpirat committed Feb 16, 2012
2 parents 2b0ce00 + edf4411 commit c446681
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/guard/jasmine/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,7 @@ def start(strategy, port, environment)
#
def stop
::Guard::UI.info "Guard::Jasmine stops server."

begin
self.process.poll_for_exit(5)
rescue ChildProcess::TimeoutError
self.process.stop
end
self.process.stop(5)
end

private
Expand Down

0 comments on commit c446681

Please sign in to comment.