Browse Source

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

Closes: #154
tags/non-daw-v1.2.0
Jonathan Moore Liles 9 years ago
parent
commit
8a58591067
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      nonlib/Thread.C

+ 5
- 1
nonlib/Thread.C View File

@@ -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…
Cancel
Save