Skip to content

Commit

Permalink
Close page on disposal (#2720)
Browse files Browse the repository at this point in the history
  • Loading branch information
kblok authored Aug 8, 2024
1 parent c4c67db commit 2d44dc7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions lib/PuppeteerSharp/Page.cs
Original file line number Diff line number Diff line change
Expand Up @@ -752,12 +752,6 @@ public async ValueTask DisposeAsync()
{
try
{
// We don't want to close the page if we're connected to the browser using `Connect`.
if (Browser.Launcher == null)
{
return;
}

await CloseAsync().ConfigureAwait(false);
}
catch
Expand Down
2 changes: 1 addition & 1 deletion lib/PuppeteerSharp/PuppeteerSharp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<Description>Headless Browser .NET API</Description>
<PackageId>PuppeteerSharp</PackageId>
<PackageReleaseNotes></PackageReleaseNotes>
<PackageVersion>18.1.0-beta1</PackageVersion>
<PackageVersion>18.1.0</PackageVersion>
<ReleaseVersion>18.1.0</ReleaseVersion>
<AssemblyVersion>18.1.0</AssemblyVersion>
<FileVersion>18.1.0</FileVersion>
Expand Down

0 comments on commit 2d44dc7

Please sign in to comment.