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:
parent
1c1ef83a65
commit
2ae95a4096
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue