fix MCP ports hang on device change and multi-surface device reconnect.

This commit is contained in:
Len Ovens 2015-10-13 22:19:36 -07:00
parent 53a28c230a
commit 1f85691870
2 changed files with 4 additions and 2 deletions

View file

@ -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;
}

View file

@ -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");
}