From 4c5d785a9bb50cddb38943ef96fffa1c72d5459b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Anthony=20L=C3=A9onard?=
 <anthony.leonard@savoirfairelinux.com>
Date: Wed, 31 May 2017 11:07:34 -0400
Subject: [PATCH] osx: Set event polling to every 10ms in ringcli

It was previously set to 1s which is too slow for other components
such as OpenDHT which kept connecting/deconnecting. Moreover, this
change was already made in the GUI client but the CLI one was
forgotten at that time.

Change-Id: Ifed007b90e9c2f9ccc01e11d90bc2d619bebd40c
---
 bin/osxmain.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/bin/osxmain.cpp b/bin/osxmain.cpp
index 20da7b8825..8a23a68434 100644
--- a/bin/osxmain.cpp
+++ b/bin/osxmain.cpp
@@ -25,6 +25,7 @@
 #include <signal.h>
 #include <getopt.h>
 #include <string>
+#include <chrono>
 
 #include "dring.h"
 #include "callmanager_interface.h"
@@ -161,7 +162,7 @@ osxTests()
 
     while (true) {
         DRing::pollEvents();
-        sleep(1);
+        std::this_thread::sleep_for(std::chrono::milliseconds(10));
     }
 
     DRing::fini();
-- 
GitLab