we no longer need to Refresh() in CM status

since CM now gets an event - ConnectionCreated - for new connections.
This commit is contained in:
Matthias Radestock committed 2015-09-30 14:00:32 +01:00
1 parent fc6f3993bd
commit e68ca761a9
1 file changed
-6
-6
View File
@@ -162,12 +162,6 @@ func NewBroadcastRouteStatusSlice(routes *Routes) []BroadcastRouteStatus {
}
func NewLocalConnectionStatusSlice(cm *ConnectionMaker) []LocalConnectionStatus {
// We need to Refresh first in order to clear out any 'attempting'
// connections from cm.targets that have been established since
// the last run of cm.checkStateAndAttemptConnections. These
// entries are harmless but do represent stale state that we do
// not want to report.
cm.Refresh()
resultChan := make(chan []LocalConnectionStatus, 0)
cm.actionChan <- func() bool {
var slice []LocalConnectionStatus