Fix exception on connection

This commit is contained in:
2022-03-31 00:27:33 +02:00
parent b209cb2556
commit 9a5f686dde
2 changed files with 4 additions and 4 deletions

View File

@ -348,14 +348,14 @@ namespace unison
List<byte> data = new List<byte>();
try
{
if (_connection == null)
return;
long totalBinarySize = 9999;
long currentSize = 0;
do
{
if (_connection == null)
return;
var albumReq = await _connection.SendAsync(new AlbumArtCommand(path, currentSize));
if (!albumReq.IsResponseValid)
break;