mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-08 14:08:56 -06:00
BBA/HLE: Fix random PCAP file corruption
Concurrency between RecvHandlePacket and SendFromDirectFIFO
This commit is contained in:
@ -123,6 +123,9 @@ void PCAPSSLCaptureLogger::LogBBA(const void* data, std::size_t length)
|
||||
{
|
||||
if (!Config::Get(Config::MAIN_NETWORK_DUMP_BBA))
|
||||
return;
|
||||
|
||||
// Concurrency between CEXIETHERNET's RecvHandlePacket and SendFromDirectFIFO
|
||||
const std::lock_guard lock(m_io_mutex);
|
||||
m_file->AddPacket(static_cast<const u8*>(data), length);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user