simplify connection logic slightly There is no need to remove entries from cm.targets that are in ourConnectedTargets. None of these targets will be in validTargets (since addTarget filters anything in ourConnectedTargets), so they will be removed a few lines further down anyway...
simplify connection logic slightly
There is no need to remove entries from cm.targets that are in
ourConnectedTargets. None of these targets will be in validTargets
(since addTarget filters anything in ourConnectedTargets), so they
will be removed a few lines further down anyway...

Unless the target is in the 'attempting' state. But that is ok, and in
fact desirable. Any such targets indicate connection attempts that are
in progress, which is something we display in `weave status` and want
to be accurate. Eventually the connection attempt will either succeed
or fail, and the cm.targets entry will be removed on the next run of
connectToTargets.

paladin74/weave,tomwilkie/weave,BWITS/weave,rade/weave,awh/weave,beni55/weave,squaremo/weave,beni55/weave,ycaihua/weave,kidaa/weave,achanda/weave,paulbellamy/weave,tomwilkie/weave,ycaihua/weave,cgvarela/weave,awanke/weave,narry/weave,dpw/weave,awanke/weave,awanke/weave,2opremio/weave,inercia/weave,weaveworks/weave,philipz/weave,paladin74/weave,errordeveloper/weave,aaam/weave,achanda/weave,beni55/weave,BWITS/weave,philipz/weave,2opremio/weave,paladin74/weave,cgvarela/weave,aaam/weave,cgvarela/weave,bboreham/weave,dpw/weave,achanda/weave,tomwilkie/weave,weaveworks/weave,errordeveloper/weave,paladin74/weave,narry/weave,errordeveloper/weave,kidaa/weave,kidaa/weave,errordeveloper/weave,paulbellamy/weave,paladin74/weave,paulbellamy/weave,awh/weave,OnePaaS/weave,n054/weave,n054/weave,OnePaaS/weave,narry/weave,2opremio/weave,weaveworks/weave,weaveworks/weave,errordeveloper/weave,dpw/weave,rade/weave,awanke/weave,cgvarela/weave,tomwilkie/weave,aaam/weave,cgvarela/weave,philipz/weave,kidaa/weave,bboreham/weave,n054/weave,bboreham/weave,2opremio/weave,inercia/weave,aaam/weave,BWITS/weave,rade/weave,dpw/weave,OnePaaS/weave,beni55/weave,squaremo/weave,n054/weave,achanda/weave,aaam/weave,inercia/weave,rade/weave,awh/weave,rade/weave,squaremo/weave,awh/weave,bboreham/weave,philipz/weave,narry/weave,BWITS/weave,inercia/weave,squaremo/weave,BWITS/weave,tomwilkie/weave,OnePaaS/weave,paulbellamy/weave,narry/weave,ycaihua/weave,bboreham/weave,2opremio/weave,awh/weave,squaremo/weave,inercia/weave,beni55/weave,awanke/weave,ycaihua/weave,OnePaaS/weave,n054/weave,ycaihua/weave,philipz/weave,achanda/weave,kidaa/weave,dpw/weave