From 0ff1377aced6a59fa3c583718585194773ed9219 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Thu, 31 Aug 2023 11:37:37 +0200 Subject: [PATCH] Revert "Extend timeout if candidate port is lost in any case" This reverts commit 7c77ed242383e416ff8748884a64474f73932911. The latest commit is not necessary since the detector has already 5 seconds of timeout. --- commands/upload/upload.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/commands/upload/upload.go b/commands/upload/upload.go index bc7aafe2067..5fe21089848 100644 --- a/commands/upload/upload.go +++ b/commands/upload/upload.go @@ -575,9 +575,6 @@ func detectUploadPort( waitForUploadPort = true timeout = time.After(5 * time.Second) log.Debug("User-specified port has been disconnected, now waiting for upload port, timeout extended by 5 seconds") - } else { - timeout = time.After(time.Second) - log.Debug("Candidate port has been disconnected, timeout extended by 1 second") } continue }