Commit dd731f54 authored by Daniel Wolf's avatar Daniel Wolf
Browse files

Wrong value was assigned

parent f415749d
......@@ -95,7 +95,7 @@ class ForwardedPacketStore(var logger: Logger?) {
@Throws(IOException::class)
fun clear(completely:Boolean = false) {
if(clearing) return
clearing = completely
clearing = true
logger?.fine("Clearing ForwardedPacketStore")
forwardedPollablePackets.forEach {
cleanup(it)
......@@ -113,6 +113,7 @@ class ForwardedPacketStore(var logger: Logger?) {
_forwardedPollablePackets.clear()
newlyForwardedPackets.clear()
newlyForwardedNonPollablePackets.clear()
clearing = false
if(completely) logger = null
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment