Skip to content

Commit 204b33b

Browse files
committed
Regenerate async code for #2794
1 parent 23e3de2 commit 204b33b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/NHibernate/Async/Tool/hbm2ddl/SchemaExport.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,11 @@ public async Task ExecuteAsync(Action<string> scriptAction, bool execute, bool j
525525
{
526526
if (connectionProvider != null)
527527
{
528-
connectionProvider.CloseConnection(connection);
528+
if (connection != null)
529+
{
530+
connectionProvider.CloseConnection(connection);
531+
}
532+
529533
connectionProvider.Dispose();
530534
}
531535
}

0 commit comments

Comments
 (0)