OpenTween.TweenMain.CheckAccountValid C# (CSharp) Method

CheckAccountValid() private static method

private static CheckAccountValid ( ) : bool
return bool
        private static bool CheckAccountValid()
        {
            if (Twitter.AccountState != MyCommon.ACCOUNT_STATE.Valid)
            {
                errorCount += 1;
                if (errorCount > 5)
                {
                    errorCount = 0;
                    Twitter.AccountState = MyCommon.ACCOUNT_STATE.Valid;
                    return true;
                }
                return false;
            }
            errorCount = 0;
            return true;
        }
TweenMain