Skip to content

Commit

Permalink
wip: refresh requests
Browse files Browse the repository at this point in the history
  • Loading branch information
frankiejol committed Feb 11, 2025
1 parent 5d5c5fd commit 3d4d327
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Ravada/Front.pm
Original file line number Diff line number Diff line change
Expand Up @@ -917,6 +917,8 @@ sub wait_request {
}
$req->status("timeout")
if $req->status eq 'working';

$req->refresh();
return $req;

}
Expand Down
3 changes: 3 additions & 0 deletions lib/Ravada/Request.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1996,6 +1996,9 @@ sub _select_db($self) {
return $row;
}

sub refresh($self) {
delete $self->{_data};
}

sub AUTOLOAD {
my $self = shift;
Expand Down

0 comments on commit 3d4d327

Please sign in to comment.