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
1 changed files with 2 additions and 2 deletions

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 );