mirror of
https://github.com/vale981/ray
synced 2025-03-06 10:31:39 -05:00
Handle unhandled exception handler == nullptr in Java (#14221)
This commit is contained in:
parent
5740b2391e
commit
58f8c4b23a
1 changed files with 5 additions and 1 deletions
|
@ -426,7 +426,11 @@ CoreWorker::CoreWorker(const CoreWorkerOptions &options, const WorkerID &worker_
|
|||
[this](const RayObject &obj) {
|
||||
// Run this on the event loop to avoid calling back into the language runtime
|
||||
// from the middle of user operations.
|
||||
io_service_.post([this, obj]() { options_.unhandled_exception_handler(obj); });
|
||||
io_service_.post([this, obj]() {
|
||||
if (options_.unhandled_exception_handler != nullptr) {
|
||||
options_.unhandled_exception_handler(obj);
|
||||
}
|
||||
});
|
||||
}));
|
||||
|
||||
auto check_node_alive_fn = [this](const NodeID &node_id) {
|
||||
|
|
Loading…
Add table
Reference in a new issue