avoid multiple running drive tasks for the same object

This commit is contained in:
2021-10-20 17:06:55 +02:00
parent 61341b52f4
commit f3d95891ad
4 changed files with 20 additions and 0 deletions

View File

@ -279,6 +279,8 @@ int StartDevice(pExeList self, char *name, pObjectDescriptor pDes,
return 0;
}
EndDriveTask(pData); /* BEGIN experimental: stop pending drive task for this objects immediately */
SetDevexecStatus(self,DEVDONE);
if(self->waitID < 0 && level == RUNDRIVE){
self->waitID = GetTaskGroupID(pServ->pTasker);