[gnome-remote-desktop/gnome-42] rdp/nw-auto: Remove superfluous if condition



commit 2f18e064dbcdd257f19fc5a6bb5d8708d75869f5
Author: Pascal Nowack <Pascal Nowack gmx de>
Date:   Mon May 16 19:26:57 2022 +0200

    rdp/nw-auto: Remove superfluous if condition

 src/grd-rdp-network-autodetection.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/src/grd-rdp-network-autodetection.c b/src/grd-rdp-network-autodetection.c
index 15c06cfc..025e9296 100644
--- a/src/grd-rdp-network-autodetection.c
+++ b/src/grd-rdp-network-autodetection.c
@@ -207,8 +207,7 @@ grd_rdp_network_autodetection_ensure_rtt_consumer (GrdRdpNetworkAutodetection
   g_assert (rtt_consumer != GRD_RDP_NW_AUTODETECT_RTT_CONSUMER_NONE);
 
   g_mutex_lock (&network_autodetection->consumer_mutex);
-  if (!has_rtt_consumer (network_autodetection, rtt_consumer))
-    network_autodetection->rtt_consumers |= rtt_consumer;
+  network_autodetection->rtt_consumers |= rtt_consumer;
 
   update_ping_source (network_autodetection);
   g_mutex_unlock (&network_autodetection->consumer_mutex);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]