1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 09:13:06 +00:00

fix win32 initialization bug reported by |ub0

This commit is contained in:
Charles Kerr 2007-09-27 17:25:27 +00:00
parent 1c1ef83a65
commit 2ae95a4096

View file

@ -123,12 +123,12 @@ tr_handle * tr_init( const char * tag )
h->encryptionMode = TR_ENCRYPTION_PREFERRED;
tr_netInit(); /* must go before tr_eventInit */
tr_eventInit( h );
while( !h->events )
tr_wait( 50 );
tr_netInit();
h->tag = strdup( tag );
if( !h->tag ) {
free( h );