Browse Source

Cache outgoing presence data if disconnected (#705)

This resolves #702
tags/1.0
Christopher F RogueException 8 years ago
parent
commit
5f04e2beba
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net.WebSocket/DiscordSocketClient.cs

+ 1
- 1
src/Discord.Net.WebSocket/DiscordSocketClient.cs View File

@@ -360,7 +360,7 @@ namespace Discord.WebSocket
private async Task SendStatusAsync()
{
if (CurrentUser == null)
throw new InvalidOperationException("Presence data cannot be sent before the client has logged in.");
return;
var game = Game;
var status = Status;
var statusSince = _statusSince;


Loading…
Cancel
Save