cleanup [skip ci]

This commit is contained in:
Robin 2016-08-16 17:39:56 +02:00
commit 5685531770
3 changed files with 7 additions and 44 deletions

View file

@ -42,11 +42,6 @@ namespace GreenshotJiraPlugin {
private JiraApi _jiraApi;
public void Dispose() {
Dispose(true);
GC.SuppressFinalize(this);
}
protected void Dispose(bool disposing) {
if (_jiraApi != null)
{
Task.Run(async () => await Logout()).Wait();
@ -59,10 +54,6 @@ namespace GreenshotJiraPlugin {
_jiraApi = new JiraApi(new Uri(_url));
}
~JiraConnector() {
Dispose(false);
}
/// <summary>
/// Internal login which catches the exceptions
/// </summary>