mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-12 22:09:25 +08:00
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:
@ -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();
|
||||
|
Reference in New Issue
Block a user