Skip to content

Commit 87a7956

Browse files
author
Jasper van Bourgognie
committed
DeviceManager: Add constructor with DeviceConnectHandler
For backward compatibility, add back the constructor with only a DeviceConnectHandler as argument
1 parent 8d131ba commit 87a7956

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Devices/DeviceManager.cs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Collections.Generic;
33
using System.Linq;
44
using System.Text;
@@ -111,11 +111,13 @@ private void PollUponStart()
111111

112112
public void Stop()
113113
{
114-
//need to stop the ZeroConf polling thread
115-
InterfaceManagerZeroConf.Instance.Destroy();
116-
114+
if (mainDevice != null)
115+
mainDevice.DataSourceScope.Stop();
116+
117117
if(pollThread != null)
118118
pollThread.Join(100);
119+
120+
InterfaceManagerZeroConf.Instance.Destroy();
119121
#if ANDROID
120122
//Nothing to do here, just keeping same ifdef structure as above
121123
#elif WINDOWS

0 commit comments

Comments
 (0)