wgengine: fix the build on darwin, windows, openbsd.

7e5e3277 changed the Router interface definition, but forgot to
fix up these platform files.

Signed-off-by: David Anderson <dave@natulte.net>
This commit is contained in:
David Anderson
2020-02-12 16:16:05 -08:00
parent 67c1b2c6ef
commit 36f5433476
3 changed files with 7 additions and 3 deletions
+2 -1
View File
@@ -51,8 +51,9 @@ func (r *winRouter) SetRoutes(rs RouteSettings) error {
return nil
}
func (r *winRouter) Close() {
func (r *winRouter) Close() error {
if r.routeChangeCallback != nil {
r.routeChangeCallback.Unregister()
}
return nil
}