Quellcode durchsuchen

Remove redundant code

blogdaren vor 7 Jahren
Ursprung
Commit
1d8d104ded
1 geänderte Dateien mit 7 neuen und 12 gelöschten Zeilen
  1. 7 12
      Worker.php

+ 7 - 12
Worker.php

@@ -1588,18 +1588,13 @@ class Worker
                         unset(static::$_pidsToRestart[$pid]);
                         static::reload();
                     }
-                } else {
-                    // If shutdown state and all child processes exited then master process exit.
-                    if (!static::getAllWorkerPids()) {
-                        static::exitAndClearAll();
-                    }
-                }
-            } else {
-                // If shutdown state and all child processes exited then master process exit.
-                if (static::$_status === static::STATUS_SHUTDOWN && !static::getAllWorkerPids()) {
-                    static::exitAndClearAll();
-                }
-            }
+				} 
+			} 
+
+			// If shutdown state and all child processes exited then master process exit.
+			if (static::$_status === static::STATUS_SHUTDOWN && !static::getAllWorkerPids()) {
+				static::exitAndClearAll();
+			}
         }
     }