panic: runtime error: index out of range in handleFetchMessages (#127)
This commit is contained in:
parent
546dfcd76d
commit
5b4e592371
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue