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