Shutdown IO threads before destroying Disk_Stream.

This commit is contained in:
Jonathan Moore Liles 2008-05-25 17:27:24 -05:00
parent d2afffbb7c
commit c210a65a00
1 changed files with 2 additions and 0 deletions

View File

@ -74,6 +74,8 @@ Disk_Stream::~Disk_Stream ( )
/* it isn't safe to do all this with the RT thread running */ /* it isn't safe to do all this with the RT thread running */
engine->lock(); engine->lock();
shutdown();
_track = NULL; _track = NULL;
sem_destroy( &_blocks ); sem_destroy( &_blocks );