Close context in a finally

This commit is contained in:
Travis Burtrum 2017-04-20 10:28:32 -04:00
parent a7e159b172
commit 6bcb3d0039

View File

@ -40,6 +40,7 @@ public class QueryMapper implements Closeable {
} catch (Throwable e) { } catch (Throwable e) {
e.printStackTrace(); e.printStackTrace();
tryClose(conn); tryClose(conn);
} finally {
tryClose(context); tryClose(context);
} }
this.conn = conn; this.conn = conn;