Fix deadlock in InstrumentTrack::play

Closes #2378
This commit is contained in:
Lukas W
2015-11-04 01:02:59 +01:00
parent 48ea02bf24
commit 6d888fd61b

View File

@@ -577,7 +577,7 @@ void InstrumentTrack::removeMidiPortNode( DataFile & _dataFile )
bool InstrumentTrack::play( const MidiTime & _start, const fpp_t _frames,
const f_cnt_t _offset, int _tco_num )
{
if( ! tryLock() || ! m_instrument )
if( ! m_instrument || ! tryLock() )
{
return false;
}