Changeset View
Changeset View
Standalone View
Standalone View
src/phage/action/PhageAgentAction.php
Show First 20 Lines • Show All 129 Lines • ▼ Show 20 Lines | while (true) { | ||||
if (!$is_open) { | if (!$is_open) { | ||||
if ($this->isExiting) { | if ($this->isExiting) { | ||||
$this->isActive = false; | $this->isActive = false; | ||||
break; | break; | ||||
} else { | } else { | ||||
throw new Exception(pht('Channel closed unexpectedly!')); | throw new Exception(pht('Channel closed unexpectedly!')); | ||||
} | } | ||||
} | } | ||||
if ($message === null) { | |||||
break; | |||||
} | |||||
} | } | ||||
} | } | ||||
private function writeOutput($key, $kind, $text) { | private function writeOutput($key, $kind, $text) { | ||||
if (!strlen($text)) { | if (!strlen($text)) { | ||||
return; | return; | ||||
} | } | ||||
Show All 40 Lines |