diff --git a/user.go b/user.go index dacf13b..a58fecd 100644 --- a/user.go +++ b/user.go @@ -130,7 +130,7 @@ func (net *network) run() { } } -func (net *network) Stop() { +func (net *network) stop() { select { case <-net.stopped: return @@ -452,7 +452,7 @@ func (u *user) deleteNetwork(id int64) error { } }) - net.Stop() + net.stop() u.networks = append(u.networks[:i], u.networks[i+1:]...) return nil }