user: unconditonally stop network in updateNetwork()
This commit is contained in:
parent
ac16729f93
commit
41399ca6fd
2
user.go
2
user.go
@ -1064,8 +1064,8 @@ func (u *user) updateNetwork(ctx context.Context, record *database.Network) (*ne
|
||||
|
||||
// If we're currently connected, disconnect and perform the necessary
|
||||
// bookkeeping
|
||||
if network.conn != nil {
|
||||
network.stop()
|
||||
if network.conn != nil {
|
||||
// Note: this will set network.conn to nil
|
||||
u.handleUpstreamDisconnected(network.conn)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user