[Edge/CodeClean] remove unnecessary connection timeout
authorJaeyun Jung <jy1210.jung@samsung.com>
Mon, 8 Apr 2024 08:10:52 +0000 (17:10 +0900)
committerSangjung Woo <again4you@gmail.com>
Thu, 11 Apr 2024 06:04:13 +0000 (15:04 +0900)
Fix svace issue, remove unnecessary code to check connection timeout.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
gst/edge/edge_sink.c

index eae004f..d355a53 100644 (file)
@@ -341,11 +341,6 @@ gst_edgesink_start (GstBaseSink * basesink)
       remaining -= 10;
     }
 
-    if (remaining > 0 &&
-        NNS_EDGE_ERROR_NONE != nns_edge_is_connected (self->edge_h)) {
-      g_usleep (remaining * 1000U);
-    }
-
     if (NNS_EDGE_ERROR_NONE != nns_edge_is_connected (self->edge_h)) {
       nns_loge ("Failed to connect to edgesrc within timeout: %ju ms",
           self->connection_timeout);