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) {
|
} catch(SQLException e) {
|
||||||
this.closeConnection();
|
this.closeConnection();
|
||||||
future.completeExceptionally(e);
|
future.completeExceptionally(e);
|
||||||
|
} catch(RuntimeException e) {
|
||||||
|
future.completeExceptionally(e);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return future;
|
return future;
|
||||||
|
|||||||
Reference in new issue
Block a user