From fd08fa3883c65a36dc85ac7a9ea944ca4e49b5f1 Mon Sep 17 00:00:00 2001 From: Christian Basler Date: Sun, 16 Jul 2017 21:25:12 +0200 Subject: [PATCH] Fixed build --- .../ch/dissem/bitmessage/networking/NetworkHandlerTest.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/networking/src/test/kotlin/ch/dissem/bitmessage/networking/NetworkHandlerTest.kt b/networking/src/test/kotlin/ch/dissem/bitmessage/networking/NetworkHandlerTest.kt index 4eaface..990b31d 100644 --- a/networking/src/test/kotlin/ch/dissem/bitmessage/networking/NetworkHandlerTest.kt +++ b/networking/src/test/kotlin/ch/dissem/bitmessage/networking/NetworkHandlerTest.kt @@ -233,7 +233,7 @@ class NetworkHandlerTest { private val peerAddress = NetworkAddress.Builder().ipv4(127, 0, 0, 1).port(6001).build() private fun shutdown(ctx: BitmessageContext) { - if (!ctx.isRunning) return + if (!ctx.isRunning()) return ctx.shutdown() do { @@ -242,7 +242,7 @@ class NetworkHandlerTest { } catch (ignore: InterruptedException) { } - } while (ctx.isRunning) + } while (ctx.isRunning()) } private fun shutdown(networkHandler: NetworkHandler) {