Skip to content

Commit

Permalink
wip: node is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
frankiejol committed Feb 7, 2024
1 parent 627d745 commit 7e7afe7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/Ravada/Domain.pm
Original file line number Diff line number Diff line change
Expand Up @@ -529,8 +529,9 @@ sub _search_already_started($self, $fast = 0) {
$sth->execute($self->_vm->type);
my %started;
while (my ($id) = $sth->fetchrow) {
my $vm = Ravada::VM->open($id);
next if !$vm->enabled;
my $vm;
eval { $vm = Ravada::VM->open($id) };
next if !$vm || !$vm->enabled;

my $vm_active;
eval {
Expand All @@ -539,7 +540,7 @@ sub _search_already_started($self, $fast = 0) {
my $error = $@;
if ($error) {
warn $error;
$vm->enabled(0) if !$vm->is_local;
$vm->enabled(0) if !$vm->is_local && !$vm->ping;
next;
}
next if !$vm_active;
Expand Down

0 comments on commit 7e7afe7

Please sign in to comment.