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
This commit is contained in:
Anthony Léonard
2017-05-31 11:07:34 -04:00
parent fc796a3d47
commit 4c5d785a9b

View File

@ -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();