MagFluxToolBox: - Exit corrected
This commit is contained in:
@@ -94,9 +94,13 @@ namespace Xylem.Common.Ui.MagFluxToolBox
|
||||
|
||||
private void FrmTest_FormClosing(Object sender, FormClosingEventArgs e)
|
||||
{
|
||||
_magFluxMeter.OnStreamingRecordDecoded -= StreamingCatcher_OnStreamingRecordDecoded;
|
||||
_magFluxMeter?.Logout();
|
||||
_magFluxMeter?.StopStreamingCatcher();
|
||||
if (_magFluxMeter != null)
|
||||
{
|
||||
_magFluxMeter.OnStreamingRecordDecoded -= StreamingCatcher_OnStreamingRecordDecoded;
|
||||
_magFluxMeter.Logout();
|
||||
_magFluxMeter.StopStreamingCatcher();
|
||||
|
||||
}
|
||||
_meterBatch?.RemoveAllMeters();
|
||||
_meterBatch?.Dispose();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user