Signed-off-by: Graham <gpe@openrs2.org>
@ -1330,9 +1330,11 @@ public class CacheImporter @Inject constructor(
public suspend fun refreshViews() {
database.execute { connection ->
connection.prepareStatement("""
connection.prepareStatement(
"""
SELECT pg_try_advisory_lock(0)
""".trimIndent()).use { stmt ->
""".trimIndent()
).use { stmt ->
stmt.executeQuery().use { rows ->
if (!rows.next()) {
throw IllegalStateException()