panic: runtime error: index out of range in handleFetchMessages (#127)

This commit is contained in:
Zach Sisco 2019-06-28 09:15:55 -04:00 committed by Drew DeVault
parent 546dfcd76d
commit 5b4e592371
1 changed files with 1 additions and 3 deletions

View File

@ -132,9 +132,7 @@ func (store *MessageStore) Update(msg types.WorkerMessage) {
switch msg := msg.(type) {
case *types.DirectoryInfo:
store.DirInfo = *msg
if store.DirInfo.Exists != len(store.Uids) {
store.worker.PostAction(&types.FetchDirectoryContents{}, nil)
}
store.worker.PostAction(&types.FetchDirectoryContents{}, nil)
update = true
case *types.DirectoryContents:
newMap := make(map[uint32]*types.MessageInfo)