From 5581fd064ec195118b6d5157bba7cab164bac42e Mon Sep 17 00:00:00 2001 From: ehouse Date: Sun, 30 Oct 2005 16:28:52 +0000 Subject: [PATCH] don't connect to relay unless have something to send --- linux/gtkmain.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/linux/gtkmain.c b/linux/gtkmain.c index 4bb61700a..aa811915a 100644 --- a/linux/gtkmain.c +++ b/linux/gtkmain.c @@ -308,17 +308,11 @@ configure_event( GtkWidget* widget, GdkEventConfigure* event, { short width, height, leftMargin, topMargin; short timerLeft, timerTop; - gboolean firstTime; gint hscale, vscale; gint trayTop; gint boardTop = 0; - firstTime = (globals->draw == NULL); - - if ( firstTime ) { - int listenSocket = linux_init_socket( &globals->cGlobals ); - gtkListenOnSocket( globals, listenSocket ); - + if ( globals->draw == NULL ) { createOrLoadObjects( globals ); }