mirror of
https://github.com/wassname/ray.git
synced 2026-06-27 22:23:17 +08:00
[hot-fix] Fix error when calling Ray.init() twice. (#3314)
This commit is contained in:
committed by
Robert Nishihara
parent
65c27c70cf
commit
9d4847ad2d
@@ -41,7 +41,10 @@ public final class Ray extends RayCall {
|
||||
* Shutdown Ray runtime.
|
||||
*/
|
||||
public static void shutdown() {
|
||||
runtime.shutdown();
|
||||
if (runtime != null) {
|
||||
runtime.shutdown();
|
||||
runtime = null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user