hotfix: cleanup in time when connect lite mode (#243)

This commit is contained in:
naison
2024-05-13 10:14:54 +08:00
committed by GitHub
parent 70d5723e97
commit e7f00f5899
6 changed files with 33 additions and 14 deletions

View File

@@ -127,7 +127,7 @@ type ClientDevice struct {
func (d *ClientDevice) Start(ctx context.Context) {
go d.tunInboundHandler(d.tunInbound, d.tunOutbound)
go heartbeats(d.tun, d.tunInbound)
go heartbeats(ctx, d.tun, d.tunInbound)
select {
case err := <-d.chExit: