fix thinko in Session::should_ignore_transport_request() and drop out of external sync if command is allowed

The semantics are that if the user configures things to allow transport commands while
using a transport master, issuing such commands first stops using the master
This commit is contained in:
Paul Davis 2020-04-24 14:22:06 -06:00
parent 58304b3a7e
commit afc8dd9022

View File

@ -825,8 +825,8 @@ Session::should_ignore_transport_request (TransportRequestSource src, TransportR
{
if (config.get_external_sync()) {
if (TransportMasterManager::instance().current()->allow_request (src, type)) {
return false;
} else {
/* accepting a command means dropping external sync first */
config.set_external_sync (false);
return true;
}
}