fix MCP ports hang on device change and multi-surface device reconnect.
This commit is contained in:
@@ -809,7 +809,7 @@ MackieControlProtocol::create_surfaces ()
|
||||
XMLNodeList const& devices = configuration_state->children();
|
||||
for (XMLNodeList::const_iterator d = devices.begin(); d != devices.end(); ++d) {
|
||||
XMLProperty* prop = (*d)->property (X_("name"));
|
||||
if (prop && prop->value() == device_name) {
|
||||
if (prop && prop->value() == _device_info.name()) {
|
||||
this_device = *d;
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -166,7 +166,9 @@ Surface::~Surface ()
|
||||
|
||||
delete _jog_wheel;
|
||||
delete _port;
|
||||
|
||||
// the ports take time to release and we may be rebuilding right away
|
||||
// in the case of changing devices.
|
||||
g_usleep (100000);
|
||||
DEBUG_TRACE (DEBUG::MackieControl, "Surface::~Surface done\n");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user