Improve ntrip stream restart

This commit is contained in:
Morten Nielsen 2020-07-30 10:49:45 -07:00
parent eb2c35c223
commit 8ef85c3283

View file

@ -62,6 +62,7 @@ namespace SampleApp.WinDesktop
await stop();
}
catch { }
stop = null;
}
counter = 0;
client.Connect(stream.Mountpoint);
@ -71,7 +72,7 @@ namespace SampleApp.WinDesktop
// Try and reconnect after a disconnect
client.Connect(stream.Mountpoint);
};
stop = client.CloseAsync;
stop = () => client.CloseAsync();
ntripstatus.Text = $"Connected";
}