mirror of
https://github.com/moparisthebest/JdbcMapper
synced 2024-12-22 07:18:51 -05:00
Close context in a finally
This commit is contained in:
parent
a7e159b172
commit
6bcb3d0039
@ -40,6 +40,7 @@ public class QueryMapper implements Closeable {
|
||||
} catch (Throwable e) {
|
||||
e.printStackTrace();
|
||||
tryClose(conn);
|
||||
} finally {
|
||||
tryClose(context);
|
||||
}
|
||||
this.conn = conn;
|
||||
|
Loading…
Reference in New Issue
Block a user