Skip to content

Commit

Permalink
Merge dcfbfc4 into 7bd2311
Browse files Browse the repository at this point in the history
  • Loading branch information
sj-i committed Nov 25, 2023
2 parents 7bd2311 + dcfbfc4 commit 5ebaf00
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion src/Command/Inspector/DaemonCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

namespace Reli\Command\Inspector;

use Amp\CancelledException;
use Amp\DeferredCancellation;
use Reli\Inspector\Daemon\Dispatcher\DispatchTable;
use Reli\Inspector\Daemon\Reader\Protocol\Message\TraceMessage;
Expand Down Expand Up @@ -138,7 +139,12 @@ function () use ($reader, $dispatch_table, $trace_output) {
}
);
}
await($futures, $cancellation->getCancellation());

try {
await($futures, $cancellation->getCancellation());
} catch (CancelledException $e) {
Log::debug('cancelled', ['exception' => $e->getMessage()]);
}

return 0;
}
Expand Down
8 changes: 7 additions & 1 deletion src/Command/Inspector/TopLikeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

namespace Reli\Command\Inspector;

use Amp\CancelledException;
use Amp\DeferredCancellation;
use Reli\Inspector\Daemon\Dispatcher\DispatchTable;
use Reli\Inspector\Daemon\Dispatcher\WorkerPool;
Expand Down Expand Up @@ -139,7 +140,12 @@ function () use ($reader, $dispatch_table, $formatter) {
}
);
}
await($futures, $cancellation->getCancellation());

try {
await($futures, $cancellation->getCancellation());
} catch (CancelledException $e) {
Log::debug('cancelled', ['exception' => $e->getMessage()]);
}

return 0;
}
Expand Down

0 comments on commit 5ebaf00

Please sign in to comment.