diff --git a/MediaBrowser.Server.Implementations/Udp/UdpServer.cs b/MediaBrowser.Server.Implementations/Udp/UdpServer.cs index 8315b20008..375d9274ef 100644 --- a/MediaBrowser.Server.Implementations/Udp/UdpServer.cs +++ b/MediaBrowser.Server.Implementations/Udp/UdpServer.cs @@ -187,7 +187,7 @@ namespace MediaBrowser.Server.Implementations.Udp /// The bytes. /// The remote end point. /// Task. - public Task SendAsync(byte[] bytes, string remoteEndPoint) + public async Task SendAsync(byte[] bytes, string remoteEndPoint) { if (bytes == null) { @@ -199,7 +199,9 @@ namespace MediaBrowser.Server.Implementations.Udp throw new ArgumentNullException("remoteEndPoint"); } - return _udpClient.SendAsync(bytes, bytes.Length, new NetworkManager().Parse(remoteEndPoint)); + await _udpClient.SendAsync(bytes, bytes.Length, new NetworkManager().Parse(remoteEndPoint)).ConfigureAwait(false); + + Logger.Info("Udp message sent to {0}", remoteEndPoint); } }