mirror of
https://github.com/dotMorten/NmeaParser.git
synced 2026-01-20 15:40:16 +01:00
Improve ntrip stream restart
This commit is contained in:
parent
eb2c35c223
commit
8ef85c3283
|
|
@ -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";
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue