finally fix annoying pulse mixer magic failure
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Thu, 4 Oct 2012 10:33:59 +0000 (10:33 +0000)
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Thu, 4 Oct 2012 10:33:59 +0000 (10:33 +0000)
SVN revision: 77424

src/modules/mixer/msg.c

index f9c15d0..0750905 100644 (file)
@@ -125,7 +125,12 @@ msg_sendmsg_creds(Pulse *conn, Pulse_Tag *tag)
    if ((!r) || (r == (int)sizeof(tag->header))) tag->auth = EINA_TRUE;
    else if (r < 0)
      {
-        if (errno != EAGAIN) ecore_main_fd_handler_del(conn->fdh);
+        if (errno != EAGAIN)
+          {
+             ERR("%d: %s", errno, strerror(errno));
+             ecore_main_fd_handler_del(conn->fdh);
+             conn->fdh = NULL;
+          }
      }
    else
      tag->pos += r;