this.BringToFront();
}
- private static int errorCount = 0;
+ private int errorCount = 0;
- private static bool CheckAccountValid()
+ private bool CheckAccountValid()
{
if (Twitter.AccountState != MyCommon.ACCOUNT_STATE.Valid)
{
- errorCount += 1;
- if (errorCount > 5)
+ this.errorCount += 1;
+ if (this.errorCount > 5)
{
- errorCount = 0;
+ this.errorCount = 0;
Twitter.AccountState = MyCommon.ACCOUNT_STATE.Valid;
return true;
}
return false;
}
- errorCount = 0;
+ this.errorCount = 0;
return true;
}
if (ct.IsCancellationRequested)
return;
- if (!CheckAccountValid())
+ if (!this.CheckAccountValid())
throw new WebApiException("Auth error. Check your account");
if (!tab.Posts.TryGetValue(statusId, out var post))
if (ct.IsCancellationRequested)
return;
- if (!CheckAccountValid())
+ if (!this.CheckAccountValid())
throw new WebApiException("Auth error. Check your account");
var successIds = new List<PostId>();
if (ct.IsCancellationRequested)
return;
- if (!CheckAccountValid())
+ if (!this.CheckAccountValid())
throw new WebApiException("Auth error. Check your account");
p.Report("Posting...");
if (ct.IsCancellationRequested)
return;
- if (!CheckAccountValid())
+ if (!this.CheckAccountValid())
throw new WebApiException("Auth error. Check your account");
p.Report("Posting...");