Prevent errors from surfacing
This commit is contained in:
parent
e5e82f0b58
commit
a3bfde1dea
@ -178,7 +178,9 @@ while (true) {
|
|||||||
try {
|
try {
|
||||||
$MadelineProto->loop();
|
$MadelineProto->loop();
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
|
try {
|
||||||
$MadelineProto->logger("Surfaced: $e");
|
$MadelineProto->logger("Surfaced: $e");
|
||||||
$MadelineProto->getEventHandler(['async' => false])->report("Surfaced: $e");
|
$MadelineProto->getEventHandler(['async' => false])->report("Surfaced: $e");
|
||||||
|
} catch (\Throwable $e) {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user