mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 18:57:28 -07:00
cleanup [skip ci]
This commit is contained in:
parent
4c7baa9476
commit
5685531770
3 changed files with 7 additions and 44 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue