Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
Fixed expression not awaited
Browse files Browse the repository at this point in the history
  • Loading branch information
julian-baumann committed Dec 2, 2023
1 parent 5b2083a commit a21b873
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Sources/SMTSP/Discovery/BleDiscovery.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ public Task<bool> RequestAccess()
return BleServer.RequestAccess();
}

public static void StartServer()
public static Task<ushort> StartServer()
{
BleServer.StartServer();
return BleServer.StartServer();
}

public static void StopServer()
Expand Down
3 changes: 2 additions & 1 deletion Sources/SMTSP/NearbyCommunication.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ public async Task StartReceiving()
communicationService.OnReceive += OnReceive;
}

BleDiscovery.StartServer();
var psm = await BleDiscovery.StartServer();
Logger.Success($"Started BLE L2CAP server. PSM: {psm}");
}
catch (Exception exception)
{
Expand Down

0 comments on commit a21b873

Please sign in to comment.