PHPDaemon/Clients/PostgreSQL/Connection.php 1 location
|
@@ 576-583 (lines=8) @@
|
| 573 |
|
$this->errno = -1; |
| 574 |
|
$this->errmsg = $message; |
| 575 |
|
|
| 576 |
|
if ($this->state === self::STATE_AUTH_PACKET_SENT) { |
| 577 |
|
// Auth. error |
| 578 |
|
foreach ($this->onConnected as $cb) { |
| 579 |
|
call_user_func($cb, $this, FALSE); |
| 580 |
|
} |
| 581 |
|
|
| 582 |
|
$this->state = self::STATE_AUTH_ERROR; |
| 583 |
|
} |
| 584 |
|
|
| 585 |
|
$this->onError(); |
| 586 |
|
|
PHPDaemon/Core/ComplexJob.php 1 location
|
@@ 280-283 (lines=4) @@
|
| 277 |
|
} |
| 278 |
|
$this->jobs[$name] = $cb; |
| 279 |
|
++$this->jobsNum; |
| 280 |
|
if (($this->state === self::STATE_RUNNING) || ($this->state === self::STATE_DONE)) { |
| 281 |
|
$this->state = self::STATE_RUNNING; |
| 282 |
|
call_user_func($cb, $name, $this); |
| 283 |
|
} |
| 284 |
|
return true; |
| 285 |
|
} |
| 286 |
|
|