Timeline: Don't attempt to join thread that hasn't been created.

Closes: #154
This commit is contained in:
Jonathan Moore Liles 2015-03-23 18:01:39 -07:00
parent 0047df03fe
commit 8a58591067
1 changed files with 5 additions and 1 deletions

View File

@ -129,7 +129,11 @@ Thread::cancel ( void )
void
Thread::join ( void )
{
if ( _thread != 0 )
{
/* not joined yet, go ahead. */
pthread_join( _thread, NULL );
}
_thread = 0;
}