[Goodies-commits] r2463 - xfce4-mpc-plugin/trunk/panel-plugin

Landry Breuil landry at xfce.org
Sun Jan 28 16:38:45 CET 2007


Author: landry
Date: 2007-01-28 15:38:45 +0000 (Sun, 28 Jan 2007)
New Revision: 2463

Modified:
   xfce4-mpc-plugin/trunk/panel-plugin/simple-libmpd.c
Log:
another ugly fix with data stream - should finally not crash !


Modified: xfce4-mpc-plugin/trunk/panel-plugin/simple-libmpd.c
===================================================================
--- xfce4-mpc-plugin/trunk/panel-plugin/simple-libmpd.c	2007-01-28 15:24:23 UTC (rev 2462)
+++ xfce4-mpc-plugin/trunk/panel-plugin/simple-libmpd.c	2007-01-28 15:38:45 UTC (rev 2463)
@@ -286,6 +286,7 @@
       DBG("Sent %d bytes",nbwri);
 
       nbread = mpd_wait_for_answer(mo);
+      usleep(1000);
       /* special case for long answers with 'playlistinfo' - hack to loop until we have received the final OK\n*/
       while (nbread == MAXBUFLEN || 0 != strcmp(mo->buffer + strlen(mo->buffer) - 3,"OK\n"))
       {




More information about the Goodies-commits mailing list