Skip to content

Commit

Permalink
Fixed a crash with -d option
Browse files Browse the repository at this point in the history
Crash when back file changed. Need reset m_dataflags before reload file.

Signed-off-by: Frank Li <Frank.Li@nxp.com>
  • Loading branch information
nxpfrankli committed Mar 8, 2024
1 parent fec32a8 commit b407608
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libuuu/buffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1394,6 +1394,7 @@ int FileBuffer::reload(string filename, bool async)
if(m_async_thread.joinable())
m_async_thread.join();

m_dataflags = 0;
m_async_thread = thread(&FS_DATA::load, &g_fs_data, filename, shared_from_this());
}
else
Expand Down

0 comments on commit b407608

Please sign in to comment.