Permalink
Browse files

fixed: possible deadlock

  • Loading branch information...
1 parent 53b90b1 commit 35e4a2eb5515fe72d87b6d78b0567609df79df2b bobo1on1 committed Mar 28, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 xbmc/peripherals/devices/PeripheralCecAdapter.cpp
@@ -140,8 +140,10 @@ void CPeripheralCecAdapter::Announce(AnnouncementFlag flag, const char *sender,
else if (flag == System && !strcmp(sender, "xbmc") && !strcmp(message, "OnSleep"))
{
// this will also power off devices when we're the active source
- CSingleLock lock(m_critSection);
- m_bStop = true;
+ {
+ CSingleLock lock(m_critSection);
+ m_bStop = true;
+ }
WaitForThreadExit(0);
}
else if (flag == System && !strcmp(sender, "xbmc") && !strcmp(message, "OnWake"))

0 comments on commit 35e4a2e

Please sign in to comment.