Skip to content

Commit

Permalink
fix interrupt event exception log bug
Browse files Browse the repository at this point in the history
  • Loading branch information
crazywhalecc committed Apr 14, 2023
1 parent 22e4a71 commit 86b7671
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/OneBot/Driver/Event/EventDispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function dispatch(object $event): object
// TODO: 在调用 listener 前先判断 isPropagationStopped
$listener[1]($event);
} catch (StopException $exception) {
ob_logger()->debug('EventLoop ' . $event . ' stopped');
// ob_logger()->debug('EventLoop ' . $event . ' stopped');
if ($event instanceof DriverEvent) {
$event->setPropagationStopped();
}
Expand Down
2 changes: 1 addition & 1 deletion src/OneBot/global_defines.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
use ZM\Logger\ConsoleLogger;

const ONEBOT_VERSION = '12';
const ONEBOT_LIBOB_VERSION = '0.6.1';
const ONEBOT_LIBOB_VERSION = '0.6.2';

const ONEBOT_JSON = 1;
const ONEBOT_MSGPACK = 2;
Expand Down

0 comments on commit 86b7671

Please sign in to comment.