fixed database queries never completing on runtime errors

This commit is contained in:
MineTec committed 2026-10-14 17:12:24 +02:00
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;