Fix logs stuck in pending symbolocated state

Summary:
This diff fixes an issue where symbolicated logs were getting stuck in a "pending" state if the timeout occurred before symbolication finished.

Changelog: [Internal]

Reviewed By: sahrens

Differential Revision: D18894154

fbshipit-source-id: ed225962468f67aef40e430aa798f8d426d31027
This commit is contained in:
Rick Hanlon 2019-12-10 10:06:57 -08:00 коммит произвёл Facebook Github Bot
Родитель bbfd64e3e9
Коммит 3714bfed2c
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -191,6 +191,9 @@ function appendNewLog(newLog) {
if (addPendingLog && status !== 'PENDING') {
addPendingLog();
clearTimeout(optimisticTimeout);
} else if (status !== 'PENDING') {
// The log has already been added but we need to trigger a render.
handleUpdate();
}
});
} else {