Skip to content

Commit f7ffbd1

Browse files
committed
For some reason ShdrAdapter's Start method did not start its internal IMTConnectAdapter _adapter.
As a result any elements fed through were not sent to the agent.
1 parent eb4952c commit f7ffbd1

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

libraries/MTConnect.NET-SHDR/Adapters/ShdrAdapter.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,8 @@ public void Start()
288288
{
289289
_stop = new CancellationTokenSource();
290290

291+
_adapter.Start();
292+
291293
// Start Agent Connection Listener
292294
_connectionListener.Start(_stop.Token);
293295

@@ -302,6 +304,7 @@ public void Stop()
302304
{
303305
if (_stop != null) _stop.Cancel();
304306
_connectionListener.Stop();
307+
_adapter.Stop();
305308

306309
// Call Overridable Method
307310
OnStop();

0 commit comments

Comments
 (0)