Fix timer usage

This commit is contained in:
世界 committed 2024-04-08 11:45:00 +08:00
1 parent 4a4180bde5
commit d20a389043
8 files changed
+28 -25

No files matched your search

+1 -1
View File
@@ -153,7 +153,7 @@ func (t *Tun) Start() error {
tunInterface tun.Tun
err error
)
monitor := taskmonitor.New(t.logger, C.DefaultStartTimeout)
monitor := taskmonitor.New(t.logger, C.StartTimeout)
monitor.Start("open tun interface")
if t.platformInterface != nil {
tunInterface, err = t.platformInterface.OpenTun(&t.tunOptions, t.platformOptions)