add using block

release-10.1.0
Luke Pulverenti 8 years ago
parent 495d06a970
commit 047d383cda

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

Loading…
Cancel
Save