mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-09 23:00:58 +00:00
Always send initial index, even if empty (ref #344)
This commit is contained in:
parent
381795d6d0
commit
bc1d04f0b9
@ -178,7 +178,7 @@ func (c *rawConnection) Index(repo string, idx []FileInfo) {
|
|||||||
idx = diff
|
idx = diff
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(idx) > 0 {
|
if msgType == messageTypeIndex || len(idx) > 0 {
|
||||||
c.send(header{0, -1, msgType}, IndexMessage{repo, idx})
|
c.send(header{0, -1, msgType}, IndexMessage{repo, idx})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user