mirror of
https://github.com/wassname/ray.git
synced 2026-10-03 12:50:16 +08:00
[hot-fix] Fix error when calling Ray.init() twice. (#3314)
This commit is contained in:
1 parent
65c27c70cf
commit
9d4847ad2d
1 file changed
+4
-1
@@ -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