Open hammersmith-xie opened 4 years ago
There may be thread contention, libwsclient_run was executed before the handshake was completed, causing the connection to fail.
libwsclient_run() calls
libwsclient_run()
pthread_join(c->handshake_thread, NULL);
before creating thread. So there's no problem.
There may be thread contention, libwsclient_run was executed before the handshake was completed, causing the connection to fail.