Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
use the new callback interface
Browse files Browse the repository at this point in the history
  • Loading branch information
yuxihu committed Sep 16, 2019
1 parent 5261f05 commit 647f48a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/engine/threaded_engine.h
Original file line number Diff line number Diff line change
Expand Up @@ -383,14 +383,12 @@ class ThreadedEngine : public Engine {
callback();
}
} catch (const std::exception& e) {
threaded_opr->opr_exception =
std::make_shared<std::exception_ptr>(std::current_exception());
callback();
callback(&e);
}
if (debug_info) {
LOG(INFO) << "Fin ExecuteOprFn ";
}
} catch (std::exception& e) {
} catch (const std::exception& e) {
std::string what = e.what();
if (what.find("driver shutting down") == std::string::npos &&
!shutdown_phase_) {
Expand Down

0 comments on commit 647f48a

Please sign in to comment.