13
0

Don't use old session connections on MCP device change, Solves crash on device change.

This commit is contained in:
Len Ovens 2015-10-11 22:27:13 -07:00
parent 104f43ad37
commit 796e404819

View File

@ -270,12 +270,14 @@ Surface::set_state (const XMLNode& node, int version)
return 0;
}
if (_mcp.session_load ()) {
XMLNode* portnode = mynode->child (X_("Port"));
if (portnode) {
if (_port->set_state (*portnode, version)) {
return -1;
}
}
}
return 0;
}