mirror of
https://github.com/LizardByte/Sunshine.git
synced 2026-12-02 10:05:50 +00:00
refactor: resolve Sonar scope and binding findings (#5926)
This commit is contained in:
1 parent
b50c7ba139
commit
71a5a90935
21 files changed
+336
-170
No files matched your search
@@ -1041,9 +1041,8 @@ namespace platf {
|
||||
|
||||
virtual ~qos_t() {
|
||||
if (--qos_ref_count == 0) {
|
||||
for (const auto &tuple : options) {
|
||||
auto reset_val = std::get<2>(tuple);
|
||||
if (setsockopt(sockfd, std::get<0>(tuple), std::get<1>(tuple), &reset_val, sizeof(reset_val)) < 0) {
|
||||
for (const auto &[level, option, reset_val] : options) {
|
||||
if (setsockopt(sockfd, level, option, &reset_val, sizeof(reset_val)) < 0) {
|
||||
BOOST_LOG(warning) << "Failed to reset option: "sv << errno;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user