[svn r441] refactoring trunk
authorleo_sobral
Fri Mar 23 13:43:28 2007 +0000 (2007-03-23)
branchtrunk
changeset 4367304e78d6307
parent 435 116e4fac8e96
child 437 84d70ba2ac65
[svn r441] refactoring
gmyth/src/gmyth_monitor_handler.c
     1.1 --- a/gmyth/src/gmyth_monitor_handler.c	Thu Mar 22 22:02:12 2007 +0000
     1.2 +++ b/gmyth/src/gmyth_monitor_handler.c	Fri Mar 23 13:43:28 2007 +0000
     1.3 @@ -175,7 +175,6 @@
     1.4    if ( monitor->event_sock != NULL )  
     1.5    {
     1.6    	g_object_unref( monitor->event_sock );
     1.7 -  	/*gmyth_socket_close_connection( monitor->event_sock );*/  	
     1.8    	monitor->event_sock = NULL;
     1.9    }
    1.10  
    1.11 @@ -314,13 +313,14 @@
    1.12    gmyth_debug ("Monitor event socket --- hostname: %s, port %d\n", monitor->hostname, monitor->port);
    1.13    
    1.14    /* configure the event socket */
    1.15 -  //if ( NULL == monitor->event_sock ) { 
    1.16 -    if (!gmyth_connect_to_backend_monitor (monitor)) {
    1.17 -      gmyth_debug( "Connection to backend failed (Event Socket)." );
    1.18 -      ret = FALSE;
    1.19 -    }
    1.20 -   else {
    1.21 -    g_warning("Remote monitor event socket already created.\n");
    1.22 +  if ( NULL == monitor->event_sock ) { 
    1.23 +      if (!gmyth_connect_to_backend_monitor (monitor)) {
    1.24 +          gmyth_debug( "Connection to backend failed (Event Socket)." );
    1.25 +          ret = FALSE;
    1.26 +      }
    1.27 +      else {
    1.28 +          g_warning("Remote monitor event socket already created.\n");
    1.29 +      }
    1.30    }
    1.31  
    1.32    return ret;