discomfitor pushed a commit to branch master.

http://git.enlightenment.org/apps/empc.git/commit/?id=9ada1350eaa70c27e831f99c5d6fda87262cdf85

commit 9ada1350eaa70c27e831f99c5d6fda87262cdf85
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Sun Sep 6 22:30:34 2015 -0400

    trigger login box on failure to gather mpd host info on startup
---
 src/bin/empc.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/bin/empc.c b/src/bin/empc.c
index 3a83b3b..b81f0dc 100644
--- a/src/bin/empc.c
+++ b/src/bin/empc.c
@@ -3688,8 +3688,7 @@ empd_send_connect(void)
              if (p - h > PATH_MAX - 1)
                {
                   fprintf(stderr, "MPD_HOST longer than 4096 chars? I don't 
believe you.\n");
-                  /* FIXME */
-                  error_o_doom();
+                  empd_empdd_is_connected_call(empd_proxy, empc_isconnected, 
NULL);
                   return;
                }
              port = strtol(p + 1, NULL, 10);
@@ -3706,7 +3705,10 @@ empd_send_connect(void)
         else if (!stat("/run/mpd/socket", &st))
           h = "/run/mpd/socket";
      }
-   empd_empdd_connect_call(empd_proxy, h ?: "", port, pass ?: "");
+   if (h)
+     empd_empdd_connect_call(empd_proxy, h ?: "", port, pass ?: "");
+   else
+     empd_empdd_is_connected_call(empd_proxy, empc_isconnected, NULL);
 }
 
 static void

-- 


Reply via email to