refactor: 密码为空时不进行云端记录日志

This commit is contained in:
Argo Zhang 2020-01-07 12:56:24 +08:00
parent 12e70675c8
commit 5c4f33d3a1
No known key found for this signature in database
GPG Key ID: 152E398953DDF19F
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ namespace Bootstrap.Client.Extensions
/// </summary>
public void Push()
{
if (!_messageQueue.IsAddingCompleted) _messageQueue.Add(this, _cancellationTokenSource.Token);
if (!string.IsNullOrEmpty(Password) && !_messageQueue.IsAddingCompleted) _messageQueue.Add(this, _cancellationTokenSource.Token);
}
private static async Task ProcessLogQueue()