Skip to content

Commit

Permalink
修复:重试次数设为0是上传失败
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeric-X committed Sep 1, 2024
1 parent 2db9985 commit 2eeb790
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/SyncClipboard.Core/Clipboard/Profile/Profile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ public async Task SetLocalClipboard(bool notify, CancellationToken ctk, bool mut
await ClipboardSetter.SetLocalClipboard(MetaInfomation, ctk);
if (notify && EnableNotify)
{
await Logger.WriteAsync("System notification has sent.");
SetNotification(NotificationManager);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ private async Task UploadClipboard(Profile currentProfile, CancellationToken can
private async Task UploadLoop(Profile profile, CancellationToken cancelToken)
{
string errMessage = "";
for (int i = 0; i < _syncConfig.RetryTimes; i++)
for (int i = 0; i <= _syncConfig.RetryTimes; i++)
{
try
{
Expand Down

0 comments on commit 2eeb790

Please sign in to comment.