Browse Source

Remove redundant code

blogdaren 7 năm trước cách đây
mục cha
commit
1d8d104ded
1 tập tin đã thay đổi với 7 bổ sung12 xóa
  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();
+			}
         }
     }