Skip to content

Commit

Permalink
fixed: CHttpApi::MethodCall would wait for 20 seconds for a response …
Browse files Browse the repository at this point in the history
…when app thread has exited

(cherry picked from commit 948021ccb739502b1df95255d1c059e0086eeb19)

git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/branches/Dharma@33669 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
  • Loading branch information
bobo1on1 committed Sep 10, 2010
1 parent 09e4696 commit 466b4eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xbmc/lib/libhttpapi/HttpApi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ CStdString CHttpApi::MethodCall(CStdString &command, CStdString &parameter)
Sleep(0);
CStdString response = g_application.getApplicationMessenger().GetResponse();

while (response=="[No response yet]" && cnt++<200)
while (response=="[No response yet]" && cnt++<200 && !g_application.m_bStop)
{
response=g_application.getApplicationMessenger().GetResponse();
CLog::Log(LOGDEBUG, "HttpApi: waiting %d", cnt);
Expand Down

0 comments on commit 466b4eb

Please sign in to comment.