📄 Update year in file headers
[Sone.git] / src / main / kotlin / net / pterodactylus / sone / freenet / wot / WebOfTrustPinger.kt
index 9d0522d..db9809e 100644 (file)
@@ -1,5 +1,5 @@
 /**
- * Sone - WebOfTrustPinger.kt - Copyright Â© 2019 David â€˜Bombe’ Roden
+ * Sone - WebOfTrustPinger.kt - Copyright Â© 2019–2020 David â€˜Bombe’ Roden
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -22,6 +22,7 @@ import net.pterodactylus.sone.core.event.*
 import net.pterodactylus.sone.freenet.plugin.*
 import net.pterodactylus.sone.utils.*
 import java.util.concurrent.atomic.*
+import java.util.function.*
 import javax.inject.*
 
 /**
@@ -32,7 +33,7 @@ import javax.inject.*
 class WebOfTrustPinger @Inject constructor(
                private val eventBus: EventBus,
                @Named("webOfTrustReacher") private val webOfTrustReacher: Runnable,
-               @Named("webOfTrustReschedule") private val reschedule: Runnable) : Runnable {
+               @Named("webOfTrustReschedule") private val reschedule: Consumer<Runnable>) : Runnable {
 
        private val lastState = AtomicBoolean(false)
 
@@ -49,7 +50,7 @@ class WebOfTrustPinger @Inject constructor(
                                lastState.set(false)
                        }
                }
-               reschedule()
+               reschedule(this)
        }
 
 }