fix: Audio stream dispose (#1667)

* Fix audio dispose

* Missed a few
This commit is contained in:
Paulo
2020-11-07 16:15:46 -03:00
committed by GitHub
parent 2592264acb
commit a2af9857ca
7 changed files with 41 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.Threading;
using System.Threading.Tasks;
@@ -69,5 +69,12 @@ namespace Discord.Audio.Streams
{
await _next.ClearAsync(cancelToken).ConfigureAwait(false);
}
protected override void Dispose(bool disposing)
{
if (disposing)
_next.Dispose();
base.Dispose(disposing);
}
}
}