diff options
author | Zach Sisco <zach@zsisco.net> | 2019-06-28 09:15:55 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-06-29 14:30:57 -0400 |
commit | 5b4e592371b246ec55f560380f15bfea516c1b16 (patch) | |
tree | a509f953ecf8add494c123c7a666dc20a2952135 /lib | |
parent | 546dfcd76dd228e0605359e9985f0b6a5672e8fa (diff) |
panic: runtime error: index out of range in handleFetchMessages (#127)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/msgstore.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/msgstore.go b/lib/msgstore.go index 45a9fb6..09cf31f 100644 --- a/lib/msgstore.go +++ b/lib/msgstore.go @@ -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) |