Skip to content
This repository
Browse code

When initializing profiles, check to see if they're already running

  • Loading branch information...
commit 98424a9f0f3cca4f7c0f0b2a2d188f858ad5a8c4 1 parent ec12d8b
Pete Keen authored

Showing 1 changed file with 6 additions and 1 deletion. Show diff stats Hide diff stats

  1. +6 1 lib/App/ProcLaunch/Profile.pm
7 lib/App/ProcLaunch/Profile.pm
@@ -43,7 +43,12 @@ sub run
43 43
44 44 # Class::Struct doesn't give us an init() so we have to do this here
45 45 unless ($self->_status()) {
46   - $self->_status(STATUS_STOPPED);
  46 + if ($self->is_running()) {
  47 + $self->_status(STATUS_RUNNING);
  48 + } else {
  49 + $self->_status(STATUS_STOPPED);
  50 + }
  51 +
47 52 $self->_should_start(1);
48 53 $self->_refresh_file_stats();
49 54 }

0 comments on commit 98424a9

Please sign in to comment.
Something went wrong with that request. Please try again.