Skip to content

Commit

Permalink
fix missing try/catch
Browse files Browse the repository at this point in the history
  • Loading branch information
frederikbosch committed Sep 3, 2020
1 parent e19a0ae commit 375ed73
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Protocol/Smtp/Negotiation/TryTlsUpgradeNegotiation.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,11 @@ public function negotiate(Client $client): void
->request(new StartTlsCommand())
->assertCompleted();

$this->connection->upgrade($this->crypto);
try {
$this->connection->upgrade($this->crypto);
} catch (SecureConnectionUpgradeException $e) {
// failed to start a secure connection
}
}
}
}
Expand Down

0 comments on commit 375ed73

Please sign in to comment.