Changeset 6253


Ignore:
Timestamp:
Jun 25, 2008, 11:34:35 AM (13 years ago)
Author:
charles
Message:

(rpc) fix crash when quickly toggling rpc on/off reported by John_Clay

Location:
trunk/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/rpc-server.c

    r6251 r6253  
    113113    assert( server );
    114114
    115     shttpd_poll( server->ctx, 1 );
     115    if( server->ctx )
     116        shttpd_poll( server->ctx, 1 );
    116117
    117118    /* set a timer for the next pulse */
  • trunk/libtransmission/trevent.c

    r5754 r6253  
    118118            assert( 0 && "unhandled command type!" );
    119119            break;
    120         }
     120        }
    121121    }
    122122}
Note: See TracChangeset for help on using the changeset viewer.