From 03f36b7f6103396707cde00906226a68ab43d9c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Muhammed=20Kadir=20Y=C3=BCcel?= Date: Mon, 18 Apr 2022 11:15:55 +0300 Subject: [PATCH] Trivial: Use `createTimer` for Client gossip timer It is immediately stopped after setting, `createTimer` is more suitable for those conditions. --- source/agora/network/Client.d | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/agora/network/Client.d b/source/agora/network/Client.d index 533ebc0a956..2f002758216 100644 --- a/source/agora/network/Client.d +++ b/source/agora/network/Client.d @@ -188,8 +188,7 @@ public class NetworkClient this.exception = new Exception( format("Request failure after %s attempts", max_retries)); // Create and stop timer immediately - this.gossip_timer = this.taskman.setTimer(GossipDelay, &this.gossipTask, Periodic.No); - this.gossip_timer.stop(); + this.gossip_timer = this.taskman.createTimer(&this.gossipTask); } /// Shut down the gossiping timer