DC_processEvents return if there are no more running WU.

git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@490 a7169a2c-3604-0410-bc95-c702d8d87f7a
This commit is contained in:
vida 2006-05-02 07:59:27 +00:00 committed by Adam Visegradi
parent 84480569ad
commit 4cfba68cbc
1 changed files with 6 additions and 0 deletions

View File

@ -27,6 +27,12 @@ int DC_processEvents(int timeout)
if (retval)
return retval;
if (DC_getWUNumber(DC_WU_RUNNING) == 0)
{
DC_log(LOG_INFO, "DC_processEvents: No more running workunits ... returning");
return 0;
}
current = time(NULL);
if (current - start > timeout)
{