Skip to content

Commit 2eb10e9

Browse files
committed
Added sleep function to iteration of connection tests
1 parent 01a95e9 commit 2eb10e9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Jobs/CreateTunnel.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ public function handle(): int
6464
if ($this->verifyTunnel()) {
6565
return 2;
6666
}
67+
68+
// Wait a bit until next iteration
69+
usleep(config('tunneler.wait'));
6770
}
6871

6972
throw new \ErrorException(sprintf("Could Not Create SSH Tunnel with command:\n\t%s\nCheck your configuration.",

0 commit comments

Comments
 (0)