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