Skip to content

Commit

Permalink
fix: dont return errors if connection is not started yet when stopping
Browse files Browse the repository at this point in the history
  • Loading branch information
tinyzimmer committed Nov 7, 2023
1 parent 4d2f975 commit ef80b61
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pkg/cmd/daemoncmd/connmgr.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,10 +257,6 @@ func (m *ConnManager) Disconnect(ctx context.Context, connID string) error {
if !ok {
return ErrNotConnected
}
if !conn.MeshNode().Started() {
m.RemoveConn(connID)
return ErrNotConnected
}
defer m.RemoveConn(connID)
return conn.Stop(ctx)
}
Expand Down

0 comments on commit ef80b61

Please sign in to comment.