Skip to content

Commit 3b3965f

Browse files
Merge pull request #78 from SergeyGulik/shdr_adapter_not_starting
Shdr events are not sent to agent from ShdrAdapter
2 parents 6f1feaa + f7ffbd1 commit 3b3965f

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)