Make sure connection is added to m.protoConn and m.rawConn before it's Start()ed (fixes #2034)

This commit is contained in:
Jakob Borg
2015-07-10 16:37:57 +10:00
parent 5bb8ea7449
commit 0c28216ee5
6 changed files with 27 additions and 3 deletions

View File

@@ -983,6 +983,8 @@ func (m *Model) AddConnection(rawConn io.Closer, protoConn protocol.Connection)
}
m.rawConn[deviceID] = rawConn
protoConn.Start()
cm := m.clusterConfig(deviceID)
protoConn.ClusterConfig(cm)