Timeline: Don't attempt to join thread that hasn't been created.
Closes: #154
This commit is contained in:
parent
0047df03fe
commit
8a58591067
|
@ -129,7 +129,11 @@ Thread::cancel ( void )
|
|||
void
|
||||
Thread::join ( void )
|
||||
{
|
||||
pthread_join( _thread, NULL );
|
||||
if ( _thread != 0 )
|
||||
{
|
||||
/* not joined yet, go ahead. */
|
||||
pthread_join( _thread, NULL );
|
||||
}
|
||||
_thread = 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue