Skip to content

Commit

Permalink
Regenerate async code for #2794
Browse files Browse the repository at this point in the history
  • Loading branch information
hazzik committed Jun 8, 2021
1 parent 23e3de2 commit 204b33b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/NHibernate/Async/Tool/hbm2ddl/SchemaExport.cs
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,11 @@ private async Task InitConnectionAndExecuteAsync(Action<string> scriptAction, bo
{
if (connectionProvider != null)
{
connectionProvider.CloseConnection(connection);
if (connection != null)
{
connectionProvider.CloseConnection(connection);
}

connectionProvider.Dispose();
}
}
Expand Down

0 comments on commit 204b33b

Please sign in to comment.