avoid a race condition between msg_init and the libevent thread's tr_dbg() call

This commit is contained in:
Charles Kerr 2007-08-15 03:26:55 +00:00
parent d6365184e7
commit 87496d2b48
1 changed files with 1 additions and 2 deletions

View File

@ -87,9 +87,8 @@ tr_handle_t * tr_init( const char * tag )
tr_handle_t * h;
int i;
tr_threadNew( libeventThreadFunc, NULL, "libeventThreadFunc" );
tr_msgInit();
tr_threadNew( libeventThreadFunc, NULL, "libeventThreadFunc" );
tr_netInit();
tr_netResolveThreadInit();