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
8f8ed8dd
Commit
8f8ed8dd
authored
Apr 20, 2017
by
Francesc Guasch
Browse files
Don't kill old requested process at startup
parent
99ba6598
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/Ravada.pm
View file @
8f8ed8dd
...
...
@@ -702,12 +702,12 @@ Before processing requests, old killed requests must be cleaned.
sub
clean_killed_requests
{
my
$self
=
shift
;
my
$sth
=
$CONNECTOR
->
dbh
->
prepare
("
SELECT id FROM requests
"
.
"
WHERE status <> 'done'
"
.
"
WHERE status <> 'done'
AND STATUS <> 'requested'
"
);
$sth
->
execute
;
while
(
my
(
$id
)
=
$sth
->
fetchrow
)
{
my
$req
=
Ravada::
Request
->
open
(
$id
);
$req
->
status
("
done
","
Killed before completion
");
$req
->
status
("
done
","
Killed
"
.
$req
->
command
.
"
before completion
");
}
}
...
...
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