panic: runtime error: index out of range in handleFetchMessages (#127)
This commit is contained in:
parent
546dfcd76d
commit
5b4e592371
1 changed files with 1 additions and 3 deletions
|
@ -132,9 +132,7 @@ func (store *MessageStore) Update(msg types.WorkerMessage) {
|
||||||
switch msg := msg.(type) {
|
switch msg := msg.(type) {
|
||||||
case *types.DirectoryInfo:
|
case *types.DirectoryInfo:
|
||||||
store.DirInfo = *msg
|
store.DirInfo = *msg
|
||||||
if store.DirInfo.Exists != len(store.Uids) {
|
|
||||||
store.worker.PostAction(&types.FetchDirectoryContents{}, nil)
|
store.worker.PostAction(&types.FetchDirectoryContents{}, nil)
|
||||||
}
|
|
||||||
update = true
|
update = true
|
||||||
case *types.DirectoryContents:
|
case *types.DirectoryContents:
|
||||||
newMap := make(map[uint32]*types.MessageInfo)
|
newMap := make(map[uint32]*types.MessageInfo)
|
||||||
|
|
Loading…
Reference in a new issue