add using block

This commit is contained in:
Luke Pulverenti 2017-03-02 16:01:42 -05:00
parent 495d06a970
commit 047d383cda

View File

@ -67,8 +67,8 @@ namespace Emby.Server.Implementations.LiveTv.TunerHosts.HdHomerun
return;
}
var tcpClient = _socketFactory.CreateTcpSocket(_remoteIp, HdHomeRunPort);
using (var tcpClient = _socketFactory.CreateTcpSocket(_remoteIp, HdHomeRunPort))
{
if (!_lockkey.HasValue)
{
var rand = new Random();
@ -130,6 +130,7 @@ namespace Emby.Server.Implementations.LiveTv.TunerHosts.HdHomerun
break;
}
}
}
public async Task StopStreaming()
{