mirror of
https://github.com/greenshot/greenshot
synced 2025-08-20 21:43:24 -07:00
Fix: Timeout wasn't taken from the configuration
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@821 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
6e0ba92385
commit
013bad0e4e
1 changed files with 1 additions and 2 deletions
|
@ -98,7 +98,6 @@ namespace Jira {
|
||||||
private const string JIRA_URL_PROPERTY = "url";
|
private const string JIRA_URL_PROPERTY = "url";
|
||||||
private const string JIRA_USER_PROPERTY = "user";
|
private const string JIRA_USER_PROPERTY = "user";
|
||||||
private const string JIRA_PASSWORD_PROPERTY = "password";
|
private const string JIRA_PASSWORD_PROPERTY = "password";
|
||||||
private const int DEFAULT_TIMEOUT = 29;
|
|
||||||
private const string AUTH_FAILED_EXCEPTION_NAME = "com.atlassian.jira.rpc.exception.RemoteAuthenticationException";
|
private const string AUTH_FAILED_EXCEPTION_NAME = "com.atlassian.jira.rpc.exception.RemoteAuthenticationException";
|
||||||
private string credentials = null;
|
private string credentials = null;
|
||||||
private DateTime loggedInTime = DateTime.Now;
|
private DateTime loggedInTime = DateTime.Now;
|
||||||
|
@ -162,7 +161,7 @@ namespace Jira {
|
||||||
|
|
||||||
private void checkCredentials() {
|
private void checkCredentials() {
|
||||||
if (loggedIn) {
|
if (loggedIn) {
|
||||||
if (loggedInTime.AddMinutes(DEFAULT_TIMEOUT).CompareTo(DateTime.Now) < 0) {
|
if (loggedInTime.AddMinutes(config.Timeout-1).CompareTo(DateTime.Now) < 0) {
|
||||||
logout();
|
logout();
|
||||||
login();
|
login();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue