Skip to content

Commit

Permalink
fwr: added unimpersonate statement in case of caught error
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://kelev.kaltura.com/usr/local/kalsource/backend/server/trunk/core@100287 6b8eccd3-e8c5-4e7d-8186-e12b5326b719
  • Loading branch information
hila committed Jun 23, 2013
1 parent 9f80647 commit 8e3ae44
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ protected function reIndexTags (KalturaBatchJob $job)
}
catch (Exception $e)
{
$this->unimpersonate();
return $this->closeJob($job, KalturaBatchJobErrorTypes::KALTURA_API, $e->getCode(), $e->getMessage(), KalturaBatchJobStatus::FAILED);
}
$this->unimpersonate();
Expand Down

0 comments on commit 8e3ae44

Please sign in to comment.