Skip to content

Commit 85e4a76

Browse files
committed
tunnel/tunnel: fix waitForEndpoint info log
1 parent 9881442 commit 85e4a76

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tunnel/tunnel.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ func (t *gtunnel) waitForEndpoint(ctx context.Context) {
100100
waitStart := time.Now()
101101
i := 0
102102

103-
defer log.I("tun: waiter: done; #%d, %s", i, core.FmtTimeAsPeriod(waitStart))
103+
defer func() {
104+
log.I("tun: waiter: done; #%d, %s", i, core.FmtTimeAsPeriod(waitStart))
105+
}()
104106

105107
for i < maxchecks && !t.closed.Load() {
106108
// wait a bit to let the endpoint settle

0 commit comments

Comments
 (0)