Skip to content

Commit

Permalink
fix(cache): delete tmp file when stop
Browse files Browse the repository at this point in the history
  • Loading branch information
I-m-SuperMan authored and kongjianneu committed Jul 13, 2020
1 parent 09637b0 commit 35b6674
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions framework/cacheModule/cache/CacheFileRemuxer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,11 @@ void CacheFileRemuxer::stop()

mMuxThread = nullptr;
}

if (FileUtils::isFileExist(mDestFilePath.c_str()) == FILE_TRUE) {
FileUtils::rmrf(mDestFilePath.c_str());
}

//muxer will close at thread end.
}

Expand Down

0 comments on commit 35b6674

Please sign in to comment.