Skip to content
Snippets Groups Projects
Commit 1df316fe authored by Julien Lopez's avatar Julien Lopez
Browse files

[MINOR] Close connection to databases when exiting

parent 1a1610b9
No related branches found
No related tags found
No related merge requests found
......@@ -41,6 +41,7 @@ import com.oracle.truffle.r.engine.interop.RForeignAccessFactoryImpl;
import com.oracle.truffle.r.nodes.RASTBuilder;
import com.oracle.truffle.r.nodes.builtin.RBuiltinPackages;
import com.oracle.truffle.r.nodes.instrumentation.RSyntaxTags;
import com.oracle.truffle.r.nodes.qirinterface.QIRInterface;
import com.oracle.truffle.r.runtime.ExitException;
import com.oracle.truffle.r.runtime.FastROptions;
import com.oracle.truffle.r.runtime.RAccuracyInfo;
......@@ -129,6 +130,7 @@ public final class TruffleRLanguage extends TruffleLanguage<RContext> {
@Override
protected void disposeContext(RContext context) {
QIRInterface.closeDrivers();
context.destroy();
}
......
......@@ -47,7 +47,6 @@ public abstract class RTableBuiltin extends RBuiltinNode {
res.put("configFile", configFile);
res.put("schemaName", schemaName);
} catch (PutException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return res;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment