Skip to content

Commit

Permalink
Merge 665e8ec into 2a2eb09
Browse files Browse the repository at this point in the history
  • Loading branch information
enumag committed Apr 26, 2020
2 parents 2a2eb09 + 665e8ec commit 3d14739
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Internal/EventStoreConnectionLogicHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,10 @@ private function startSubscription(StartSubscriptionMessage $message): void
$message->userCredentials(),
fn (EventStoreSubscription $subscription, ResolvedEvent $resolvedEvent): Promise => ($message->eventAppeared())($subscription, $resolvedEvent),
function (EventStoreSubscription $subscription, SubscriptionDropReason $reason, ?Throwable $exception = null) use ($message): void {
($message->subscriptionDropped())($subscription, $reason, $exception);
$subscriptionDroppedHandler = $message->subscriptionDropped();
if ($subscriptionDroppedHandler !== null) {
$subscriptionDroppedHandler($subscription, $reason, $exception);
}
},
$this->settings->verboseLogging(),
fn (): ?TcpPackageConnection => $this->connection
Expand Down

0 comments on commit 3d14739

Please sign in to comment.