Skip to content
Browse files

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

  • Loading branch information...
1 parent ec12d8b commit 98424a9f0f3cca4f7c0f0b2a2d188f858ad5a8c4 @peterkeen committed Sep 15, 2010
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/App/ProcLaunch/Profile.pm
View
7 lib/App/ProcLaunch/Profile.pm
@@ -43,7 +43,12 @@ sub run
# Class::Struct doesn't give us an init() so we have to do this here
unless ($self->_status()) {
- $self->_status(STATUS_STOPPED);
+ if ($self->is_running()) {
+ $self->_status(STATUS_RUNNING);
+ } else {
+ $self->_status(STATUS_STOPPED);
+ }
+
$self->_should_start(1);
$self->_refresh_file_stats();
}

0 comments on commit 98424a9

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