Skip to content

Commit

Permalink
usb2snes: clear watches on shutdown
Browse files Browse the repository at this point in the history
this may speed up shutdown by 1 interval
  • Loading branch information
black-sliver committed Nov 28, 2023
1 parent 4cece43 commit da9363f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/usb2snes/usb2snes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,11 @@ USB2SNES::USB2SNES(const std::string& name)

USB2SNES::~USB2SNES()
{
{
std::lock_guard<std::mutex> watchlock(watchmutex);
watchlist.clear();
no_rom_watchlist.clear();
}
disconnect();
#ifdef DETACH_THREAD_ON_EXIT
{
Expand Down

0 comments on commit da9363f

Please sign in to comment.