From c8d4aecf32bb4c86d699a6bcc5200cfda2a4ca4c Mon Sep 17 00:00:00 2001 From: plaidman Date: Mon, 13 May 2019 07:52:20 -0400 Subject: [PATCH] squelching benign error messages when invoking connman --- wifi/drivers/connmanctl.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/wifi/drivers/connmanctl.c b/wifi/drivers/connmanctl.c index 8fffda7e89..0f7d66d46c 100644 --- a/wifi/drivers/connmanctl.c +++ b/wifi/drivers/connmanctl.c @@ -21,6 +21,9 @@ #include "../wifi_driver.h" #include "../../retroarch.h" #include "../../lakka.h" +#ifdef HAVE_MENU_WIDGETS +#include "../../menu/widgets/menu_widgets.h" +#endif static bool connman_cache[256] = {0}; static unsigned connman_counter = 0; @@ -214,7 +217,10 @@ static bool connmanctl_connect_ssid(unsigned i, const char* passphrase) while (fgets (ln, 512, command_file) != NULL) { - runloop_msg_queue_push(ln, 1, 180, true, NULL, MESSAGE_QUEUE_ICON_DEFAULT, MESSAGE_QUEUE_CATEGORY_INFO); +#ifdef HAVE_MENU_WIDGETS + if (!menu_widgets_ready()) +#endif + runloop_msg_queue_push(ln, 1, 180, true, NULL, MESSAGE_QUEUE_ICON_DEFAULT, MESSAGE_QUEUE_CATEGORY_INFO); } pclose(command_file);