Skip to content

Commit 6ef2a6c

Browse files
committed
Fix deadlock on network update
1 parent 8d285f7 commit 6ef2a6c

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

monitor_shared.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,6 @@ func (m *defaultInterfaceMonitor) DefaultInterfaceName(destination netip.Addr) s
132132
}
133133
}
134134
}
135-
if m.defaultInterfaceIndex == -1 {
136-
m.checkUpdate()
137-
}
138135
return m.defaultInterfaceName
139136
}
140137

@@ -146,9 +143,6 @@ func (m *defaultInterfaceMonitor) DefaultInterfaceIndex(destination netip.Addr)
146143
}
147144
}
148145
}
149-
if m.defaultInterfaceIndex == -1 {
150-
m.checkUpdate()
151-
}
152146
return m.defaultInterfaceIndex
153147
}
154148

@@ -160,9 +154,6 @@ func (m *defaultInterfaceMonitor) DefaultInterface(destination netip.Addr) (stri
160154
}
161155
}
162156
}
163-
if m.defaultInterfaceIndex == -1 {
164-
m.checkUpdate()
165-
}
166157
return m.defaultInterfaceName, m.defaultInterfaceIndex
167158
}
168159

0 commit comments

Comments
 (0)