PHPDaemon/Clients/PostgreSQL/Connection.php 1 location
|
@@ 563-570 (lines=8) @@
|
| 560 |
|
$this->errno = -1; |
| 561 |
|
$this->errmsg = $message; |
| 562 |
|
|
| 563 |
|
if ($this->state === self::STATE_AUTH_PACKET_SENT) { |
| 564 |
|
// Auth. error |
| 565 |
|
foreach ($this->onConnected as $cb) { |
| 566 |
|
$cb($this, false); |
| 567 |
|
} |
| 568 |
|
|
| 569 |
|
$this->state = self::STATE_AUTH_ERROR; |
| 570 |
|
} |
| 571 |
|
|
| 572 |
|
$this->onError(); |
| 573 |
|
|
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 |
|
|