From 1399b4483f17ee37a164fd127e6a20f4a757f291 Mon Sep 17 00:00:00 2001 From: Lassi Selander Date: Sun, 10 May 2009 11:44:57 -0600 Subject: [PATCH] Fix for previous xmms2 patch. --- src/xmms2.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/xmms2.c b/src/xmms2.c index d50de779..c8607e9c 100644 --- a/src/xmms2.c +++ b/src/xmms2.c @@ -26,8 +26,6 @@ #include "conky.h" -xmms_socket_t xmms2_fd; -fd_set xmms2_fdset; xmmsc_connection_t *xmms2_conn; #define CONN_INIT 0 @@ -311,17 +309,11 @@ void update_xmms2() /* handle callbacks */ if (current_info->xmms2.conn_state == CONN_OK) { - struct timeval tmout; - - tmout.tv_sec = 0; - tmout.tv_usec = 100; - - select(xmms2_fd + 1, &xmms2_fdset, NULL, NULL, &tmout); xmmsc_io_in_handle(xmms2_conn); - if (xmmsc_io_want_out(xmms2_conn)) { + if (xmmsc_io_want_out(xmms2_conn)) xmmsc_io_out_handle(xmms2_conn); - } + } }