[hot-fix] Fix error when calling Ray.init() twice. (#3314)

This commit is contained in:
Wang Qing
2018-11-14 10:21:54 +08:00
committed by Robert Nishihara
parent 65c27c70cf
commit 9d4847ad2d
+4 -1
View File
@@ -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;
}
}
/**