fixed database queries never completing on runtime errors
This commit is contained in:
1 parent
ee265a858c
commit
f4faf763e3
1 file changed
+2
@@ -93,6 +93,8 @@ public class Database {
|
||||
} catch(SQLException e) {
|
||||
this.closeConnection();
|
||||
future.completeExceptionally(e);
|
||||
} catch(RuntimeException e) {
|
||||
future.completeExceptionally(e);
|
||||
}
|
||||
});
|
||||
return future;
|
||||
|
||||
Reference in new issue
Block a user