lib/model, lib/protocol: Sequence ClusterConfig properly (fixes #3448)

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3452
This commit is contained in:
Jakob Borg
2016-07-27 21:36:25 +00:00
committed by Audrius Butkevicius
parent 7c7e8648ff
commit aafc96f58f
2 changed files with 5 additions and 2 deletions

View File

@@ -302,7 +302,7 @@ func (c *rawConnection) readerLoop() (err error) {
if state != stateInitial {
return fmt.Errorf("protocol error: cluster config message in state %d", state)
}
go c.receiver.ClusterConfig(c.id, *msg)
c.receiver.ClusterConfig(c.id, *msg)
state = stateReady
case *Index: