PHPDaemon/Core/ComplexJob.php 1 location
|
@@ 199-202 (lines=4) @@
|
196 |
|
} |
197 |
|
$this->jobs[$name] = $cb; |
198 |
|
++$this->jobsNum; |
199 |
|
if (($this->state === self::STATE_RUNNING) || ($this->state === self::STATE_DONE)) { |
200 |
|
$this->state = self::STATE_RUNNING; |
201 |
|
$cb($name, $this); |
202 |
|
} |
203 |
|
return true; |
204 |
|
} |
205 |
|
|
PHPDaemon/Clients/PostgreSQL/Connection.php 1 location
|
@@ 572-579 (lines=8) @@
|
569 |
|
$this->errno = -1; |
570 |
|
$this->errmsg = $message; |
571 |
|
|
572 |
|
if ($this->state === self::STATE_AUTH_PACKET_SENT) { |
573 |
|
// Auth. error |
574 |
|
foreach ($this->onConnected as $cb) { |
575 |
|
$cb($this, false); |
576 |
|
} |
577 |
|
|
578 |
|
$this->state = self::STATE_AUTH_ERROR; |
579 |
|
} |
580 |
|
|
581 |
|
$this->onError(); |
582 |
|
|