aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Service.cs
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2021-05-21 08:59:02 -0500
committerGitHub <noreply@github.com>2021-05-21 08:59:02 -0500
commit1d0978ab2273255f0decc8c9b6239ef5d0a0c5bd (patch)
tree432afbaf7f55c1dc571a48661564078969a6049b /src/slskd/Service.cs
parent510de3d91a58b60b59447a785b6b6a1b3ccc5bd7 (diff)
parent82a38b0f0b405c03503f3b1fff81a7981227b267 (diff)
downloadslskd-1d0978ab2273255f0decc8c9b6239ef5d0a0c5bd.tar.gz
Merge pull request #77 from slskd/warnings
Resolve noisy build warnings
Diffstat (limited to 'src/slskd/Service.cs')
-rw-r--r--src/slskd/Service.cs9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/slskd/Service.cs b/src/slskd/Service.cs
index 8daab772..4ac684ad 100644
--- a/src/slskd/Service.cs
+++ b/src/slskd/Service.cs
@@ -168,7 +168,7 @@ namespace slskd
}
/// <summary>
- /// Creates and returns an <see cref="IEnumerable{T}"/> of <see cref="Soulseek.Directory"/> in response to a remote request.
+ /// Creates and returns an instances of <see cref="BrowseResponse"/> in response to a remote request.
/// </summary>
/// <param name="username">The username of the requesting user.</param>
/// <param name="endpoint">The IP endpoint of the requesting user.</param>
@@ -217,7 +217,7 @@ namespace slskd
if (currentReconnectAttempts <= MaxReconnectAttempts)
{
- var wait = currentReconnectAttempts ^ 3;
+ var wait = (int)Math.Pow(currentReconnectAttempts, 3);
Console.WriteLine($"Waiting {wait} second(s) before reconnect...");
await Task.Delay(wait);
@@ -243,7 +243,8 @@ namespace slskd
private void Client_RoomJoined(object sender, RoomJoinedEventArgs args)
{
- if (args.Username != Options.Soulseek.Username) // this will fire when we join a room; track that through the join operation.
+ // this will fire when we join a room; track that through the join operation.
+ if (args.Username != Options.Soulseek.Username)
{
RoomTracker.TryAddUser(args.RoomName, args.UserData);
}
@@ -288,7 +289,7 @@ namespace slskd
private void Client_UserStatusChanged(object sender, UserStatusChangedEventArgs args)
{
- // Console.WriteLine($"[USER] {args.Username}: {args.Status}");
+ Console.WriteLine($"[USER] {args.Username}: {args.Status}");
}
/// <summary>