Skip to content

Commit 6e2f721

Browse files
committed
Saving the config should be the last one
1 parent 86c9386 commit 6e2f721

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/src/main/kotlin/com/lambda/config/Configuration.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ abstract class Configuration : Jsonable {
4141
init {
4242
unsafeListener<ClientEvent.Startup> { tryLoad() }
4343

44-
unsafeListener<ClientEvent.Shutdown> { trySave() }
44+
unsafeListener<ClientEvent.Shutdown>(Int.MIN_VALUE) { trySave() }
4545

4646
configurations.add(this)
4747
}

0 commit comments

Comments
 (0)