mirror of
https://github.com/bitinflow/expose.git
synced 2026-11-01 05:09:11 +00:00
wip
This commit is contained in:
1 parent
71ce328eb0
commit
48c759a7d9
2 files changed
+14
-15
No files matched your search
+11
-1
@@ -31,6 +31,9 @@ class Client
|
||||
/** @var int */
|
||||
protected $timeConnected = 0;
|
||||
|
||||
/** @var bool */
|
||||
protected $shouldExit = true;
|
||||
|
||||
public static $user = [];
|
||||
public static $subdomains = [];
|
||||
|
||||
@@ -41,6 +44,11 @@ class Client
|
||||
$this->logger = $logger;
|
||||
}
|
||||
|
||||
public function shouldExit($shouldExit = true)
|
||||
{
|
||||
$this->shouldExit = $shouldExit;
|
||||
}
|
||||
|
||||
public function share(string $sharedUrl, array $subdomains = [], $serverHost = null)
|
||||
{
|
||||
$sharedUrl = $this->prepareSharedUrl($sharedUrl);
|
||||
@@ -237,7 +245,9 @@ class Client
|
||||
$deferred->reject();
|
||||
|
||||
$this->loop->futureTick(function () {
|
||||
exit(1);
|
||||
if ($this->shouldExit) {
|
||||
exit(1);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user