Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions EmoTracker/Providers/SNI/SniDevice.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Grpc.Core;

namespace EmoTracker.Providers.SNI
{
Expand Down Expand Up @@ -84,6 +85,16 @@ public override async Task ConnectAsync()
mConnected = true;
ConnectionStatusChanged?.Invoke(this, true);
}
catch (RpcException ex)
{
//SNI Memory Mapping Detection isn't implemented for these devices, but we are connected if we're getting this response
if(ex.StatusCode == StatusCode.Unimplemented)
Log.Debug("[SNI] Device does not implement mapping_detect however we are connected as we " +
"explicitly received the Unimplemented status {DisplayName}: {Message}",
mDisplayName, ex.Message);
mConnected = true;
ConnectionStatusChanged?.Invoke(this, true);
}
catch (Exception ex)
{
Log.Warning("[SNI] Failed to connect to {DisplayName}: {Message}", mDisplayName, ex.Message);
Expand Down
Loading