13
0

use clear_ports()

This commit is contained in:
Paul Davis 2020-04-02 19:24:16 -06:00
parent 6cdc245967
commit af69ac1285

View File

@ -572,15 +572,7 @@ PortAudioBackend::_start (bool for_latency_measurement)
return BackendReinitializationError; return BackendReinitializationError;
} }
if (_ports.size()) { clear_ports ();
DEBUG_AUDIO(
"Recovering from unclean shutdown, port registry is not empty.\n");
_system_inputs.clear();
_system_outputs.clear();
_system_midi_in.clear();
_system_midi_out.clear();
_ports.clear();
}
/* reset internal state */ /* reset internal state */
assert (_run == false); assert (_run == false);