fix stream backend crash when transfer

This commit is contained in:
yihaoDeng 2023-12-16 15:20:38 +08:00
parent 547d797a26
commit 8045d2bda7
1 changed files with 2 additions and 0 deletions

View File

@ -1814,6 +1814,8 @@ STaskDbWrapper* taskDbOpen(char* path, char* key, int64_t chkpId) {
void taskDbDestroy(void* pDb, bool flush) {
STaskDbWrapper* wrapper = pDb;
if (wrapper == NULL) return;
streamMetaRemoveDB(wrapper->pMeta, wrapper->idstr);
qDebug("succ to destroy stream backend:%p", wrapper);