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;
}
if (_ports.size()) {
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();
}
clear_ports ();
/* reset internal state */
assert (_run == false);