Skip to content

Commit 922c428

Browse files
committed
x
1 parent 73db03d commit 922c428

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zrpc/internal/rpcpubserver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ func (s keepAliveServer) Start(fn RegisterFn) error {
6464
defer cancel()
6565

6666
ticker := time.NewTicker(time.Second)
67-
defer ticker.Stop()
6867

6968
l:
7069
for {
@@ -84,6 +83,7 @@ l:
8483
return err
8584
}
8685
}
86+
ticker.Stop()
8787

8888
return <-chErr
8989
}

0 commit comments

Comments
 (0)