fix win32 initialization bug reported by |ub0
This commit is contained in:
parent
1c1ef83a65
commit
2ae95a4096
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue