Don't use old session connections on MCP device change, Solves crash on device change.
This commit is contained in:
parent
104f43ad37
commit
796e404819
@ -270,10 +270,12 @@ Surface::set_state (const XMLNode& node, int version)
|
||||
return 0;
|
||||
}
|
||||
|
||||
XMLNode* portnode = mynode->child (X_("Port"));
|
||||
if (portnode) {
|
||||
if (_port->set_state (*portnode, version)) {
|
||||
return -1;
|
||||
if (_mcp.session_load ()) {
|
||||
XMLNode* portnode = mynode->child (X_("Port"));
|
||||
if (portnode) {
|
||||
if (_port->set_state (*portnode, version)) {
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user