diff --git a/src/Infrastructure/OpcUa/ExperionOpcServerService.cs b/src/Infrastructure/OpcUa/ExperionOpcServerService.cs index f51e7da..adfe5a0 100644 --- a/src/Infrastructure/OpcUa/ExperionOpcServerService.cs +++ b/src/Infrastructure/OpcUa/ExperionOpcServerService.cs @@ -283,7 +283,13 @@ public class ExperionOpcServerService : IExperionOpcServerService, IHostedServic _server?.Stop(); #pragma warning restore CS0618 // 'Stop()' is obsolete } - catch { /* ignore */ } - _server = null; + catch (Exception ex) + { + _logger.LogWarning(ex, "[OpcServer] Dispose 중 예외 발생 - 리소스 모니터링 필요"); + } + finally + { + _server = null; + } } }