Просмотр исходного кода

* fix for Mantis #30567; the method only needs to be left with nothing to do if both method and thread are Nil

git-svn-id: trunk@34456 -
svenbarth 9 лет назад
Родитель
Сommit
ed144a6535
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      rtl/objpas/classes/classes.inc

+ 1 - 1
rtl/objpas/classes/classes.inc

@@ -484,7 +484,7 @@ var
   entry, tmpentry, lastentry: PThreadQueueEntry;
 begin
   { anything to do at all? }
-  if not Assigned(aThread) or not Assigned(aMethod) then
+  if not Assigned(aThread) and not Assigned(aMethod) then
     Exit;
 
   System.EnterCriticalSection(ThreadQueueLock);