Skip to content

Commit

Permalink
Merge branch 'jb50745-accept-connections' into 'master'
Browse files Browse the repository at this point in the history
[buteo-syncfw] Don't search for unknown connection type in allowed types. Contributes to JB#50745

See merge request mer-core/buteo-syncfw!55
  • Loading branch information
pvuorela committed Sep 17, 2020
2 parents 1d36739 + 0422850 commit 91c82ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion msyncd/synchronizer.cpp
Expand Up @@ -2221,7 +2221,7 @@ bool Synchronizer::acceptScheduledSync(bool aConnected, Sync::InternetConnection
}

QList<Sync::InternetConnectionType> allowedTypes = aSyncProfile->internetConnectionTypes();
if (!allowedTypes.isEmpty()) {
if (aType != Sync::INTERNET_CONNECTION_UNKNOWN && !allowedTypes.isEmpty()) {
return allowedTypes.contains(aType);
}

Expand Down

0 comments on commit 91c82ea

Please sign in to comment.