···264264 return err
265265 }
266266267267+ // don't care if this errors, but we should try to disconnect something we just blocked
268268+ _ = bgs.slurper.KillUpstreamConnection(host, false)
269269+267270 return e.JSON(200, map[string]any{
268271 "success": "true",
269272 })
+1
bgs/fedmgr.go
···745745 return fmt.Errorf("killing connection %q: %w", host, ErrNoActiveConnection)
746746 }
747747 ac.cancel()
748748+ // cleanup in the run thread subscribeWithRedialer() will delete(s.active, host)
748749749750 if block {
750751 if err := s.db.Model(models.PDS{}).Where("id = ?", ac.pds.ID).UpdateColumn("blocked", true).Error; err != nil {