mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-22558 Shutdown kernels for hub correctly
This commit is contained in:
@@ -416,7 +416,12 @@ public class IpnbConnection {
|
||||
}
|
||||
|
||||
protected void shutdownKernel() throws IOException {
|
||||
httpRequest(myURI + KERNELS_URL + "/" + myKernelId, HTTPMethod.DELETE.name());
|
||||
if (myIsHubServer) {
|
||||
httpRequest(myURI + USER_PATH + "/" + IpnbSettings.getInstance(myProject).getUsername() + KERNELS_URL + "/" + myKernelId, HTTPMethod.DELETE.name());
|
||||
}
|
||||
else {
|
||||
httpRequest(myURI + KERNELS_URL + "/" + myKernelId, HTTPMethod.DELETE.name());
|
||||
}
|
||||
}
|
||||
|
||||
public void interrupt() throws IOException {
|
||||
|
||||
Reference in New Issue
Block a user