Skip to content

Commit

Permalink
#6560: fix problem with removing session
Browse files Browse the repository at this point in the history
  • Loading branch information
jaroslawmalekcodete committed Jan 25, 2018
1 parent 56c89b2 commit c994d35
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

import com.google.common.collect.Lists;
import com.twosigma.beakerx.DefaultJVMVariables;
import com.twosigma.beakerx.NamespaceClient;
import com.twosigma.beakerx.TryResult;
import com.twosigma.beakerx.jvm.threads.CellExecutor;
import com.twosigma.beakerx.kernel.AddImportStatus;
Expand Down Expand Up @@ -208,6 +209,7 @@ public Path getTempFolder() {

@Override
public void exit() {
NamespaceClient.delBeaker(getSessionId());
removeTempFolder();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,6 @@ public TryResult call() throws Exception {
nc = null;
}
}
NamespaceClient.delBeaker(groovyEvaluator.getSessionId());
return r;
}

void doExit() {
// this.exit = true;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,6 @@ public TryResult call() throws Exception {
nc = null;
}
}

NamespaceClient.delBeaker(javaEvaluator.getSessionId());
return r;
}

public void doExit() {
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ public TryResult call() throws Exception {
nc = null;
}
}
NamespaceClient.delBeaker(kotlinEvaluator.getSessionId());
return either;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,6 @@ public TryResult call() throws Exception {
nc = null;
}
}

NamespaceClient.delBeaker(scalaEvaluator.getSessionId());
return either;
}

public void doExit() {

}
}

0 comments on commit c994d35

Please sign in to comment.