From 8da933c01a0e1bf7fa161ee42a9db52bdbb075d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20B=C3=A9raud?= Date: Sun, 9 Jun 2019 23:31:40 -0400 Subject: [PATCH] dhtrunner: use threaded mode by default --- include/opendht/dhtrunner.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/opendht/dhtrunner.h b/include/opendht/dhtrunner.h index 95e0bfa2..32e3974b 100644 --- a/include/opendht/dhtrunner.h +++ b/include/opendht/dhtrunner.h @@ -365,7 +365,7 @@ public: * @param threaded: If false, ::loop() must be called periodically. Otherwise a thread is launched. * @param cb: Optional callback to receive general state information. */ - void run(in_port_t port = 4222, const crypto::Identity identity = {}, bool threaded = false, NetId network = 0) { + void run(in_port_t port = 4222, const crypto::Identity identity = {}, bool threaded = true, NetId network = 0) { run(port, { /*.dht_config = */{ /*.node_config = */{