diff --git a/Modules.EDMIAPI/Client.vb b/Modules.EDMIAPI/Client.vb index b0ff42e8..8bceaa00 100644 --- a/Modules.EDMIAPI/Client.vb +++ b/Modules.EDMIAPI/Client.vb @@ -43,8 +43,10 @@ Public Class Client Dim oBinding = Channel.GetBinding() Dim oAddress = New EndpointAddress($"net.tcp://{IPAddress}:{PortNumber}/DigitalData/Services/Main") Dim oFactory = New ChannelFactory(Of IEDMIServiceChannel)(oBinding, oAddress) - Catch ex As Exception + _channelFactory = oFactory + Catch ex As Exception + _logger.Error(ex) End Try End Sub