[svn r206] Fixed problem with locking. trunk
authorrosfran
Wed Dec 06 14:25:19 2006 +0000 (2006-12-06)
branchtrunk
changeset 20501879d8f56db
parent 204 5b07de56c816
child 206 f70332afb8d0
[svn r206] Fixed problem with locking.
gmyth/src/gmyth_file_transfer.c
gmyth/src/gmyth_socket.c
     1.1 --- a/gmyth/src/gmyth_file_transfer.c	Wed Dec 06 14:15:39 2006 +0000
     1.2 +++ b/gmyth/src/gmyth_file_transfer.c	Wed Dec 06 14:25:19 2006 +0000
     1.3 @@ -206,6 +206,8 @@
     1.4      g_warning("Remote transfer control socket already created.\n");
     1.5    }
     1.6    
     1.7 +  gmyth_debug ("Got file with size = %lld.\n", transfer->filesize);
     1.8 +  
     1.9    return ret;
    1.10  
    1.11  }
     2.1 --- a/gmyth/src/gmyth_socket.c	Wed Dec 06 14:15:39 2006 +0000
     2.2 +++ b/gmyth/src/gmyth_socket.c	Wed Dec 06 14:25:19 2006 +0000
     2.3 @@ -643,7 +643,7 @@
     2.4  		goto done;
     2.5      }
     2.6  
     2.7 -    g_static_mutex_lock( &mutex );
     2.8 +    //g_static_mutex_lock( &mutex );
     2.9      gmyth_debug ("[%s] Sending command to backend: %s\n", __FUNCTION__, command->str);
    2.10  
    2.11      buffer = g_strnfill( BUFLEN, ' ' );
    2.12 @@ -676,7 +676,7 @@
    2.13  		ret = TRUE;
    2.14      }
    2.15  
    2.16 -    g_static_mutex_unlock( &mutex );
    2.17 +    //g_static_mutex_unlock( &mutex );
    2.18  done:
    2.19      if ( error != NULL ) {
    2.20  		g_printerr( "[%s] Error found reading data from IO channel: (%d, %s)\n", __FUNCTION__, error->code, error->message );