Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Ravada-Mirror
Commits
9e464709
Commit
9e464709
authored
May 10, 2019
by
Francesc Guasch
Browse files
refactor(backend): remove unnecessary domain shutdowns
parent
3b1413e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/Ravada.pm
View file @
9e464709
...
...
@@ -3150,12 +3150,13 @@ sub _refresh_down_domains($self, $active_domain, $active_vm) {
}
}
sub
_remove_unnecessary_downs
($self, $domain=undef) {
my
@domains
=
$self
->
list_domains
(
active
=>
0
)
if
!
$domain
;
sub
_remove_unnecessary_downs
($self, @domains) {
@domains
=
$self
->
list_domains
(
active
=>
0
)
if
!
scalar
@domains
;
for
my
$domain
(
@domains
)
{
my
@requests
=
$domain
->
list_requests
(
1
);
for
my
$req
(
@requests
)
{
$req
->
status
('
done
')
if
$req
->
command
=~
/
^
shutdown/
;
$req
->
status
('
done
')
if
$req
->
command
=~
/shutdown/
;
$req
->
_remove_messages
();
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment