Skip to content
Snippets Groups Projects
Commit 5f524501 authored by Peter Rotich's avatar Peter Rotich
Browse files

Merge pull request #619 from greezybacon/issue/upgrader-abort


Implement Upgrader::abort
Reviewed-By: default avatarPeter Rotich <peter@osticket.com>
parents c477b20c 762d56cf
No related branches found
No related tags found
No related merge requests found
...@@ -61,6 +61,11 @@ class Upgrader { ...@@ -61,6 +61,11 @@ class Upgrader {
return !strcasecmp($this->getState(), 'aborted'); return !strcasecmp($this->getState(), 'aborted');
} }
function abort($msg, $debug=false) {
if ($this->getCurrentStream())
$this->getCurrentStream()->abort($msg, $debug);
}
function getState() { function getState() {
return $this->state; return $this->state;
} }
...@@ -108,7 +113,8 @@ class Upgrader { ...@@ -108,7 +113,8 @@ class Upgrader {
} }
function getErrors() { function getErrors() {
return $this->getCurrentStream()->getError(); if ($this->getCurrentStream())
return $this->getCurrentStream()->getError();
} }
function getNextAction() { function getNextAction() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment