Always send initial index, even if empty (ref #344)

This commit is contained in:
Jakob Borg 2014-07-02 21:49:51 +02:00
parent 381795d6d0
commit bc1d04f0b9

View File

@ -178,7 +178,7 @@ func (c *rawConnection) Index(repo string, idx []FileInfo) {
idx = diff
}
if len(idx) > 0 {
if msgType == messageTypeIndex || len(idx) > 0 {
c.send(header{0, -1, msgType}, IndexMessage{repo, idx})
}
}