refactor: remove some locks on jobthread

This commit is contained in:
dignifiedquire
2019-05-07 16:34:12 +01:00
parent eac0c201bd
commit caecdbb673
3 changed files with 12 additions and 25 deletions

View File

@@ -295,16 +295,12 @@ pub unsafe fn dc_close(context: &dc_context_t) {
.lock()
.unwrap()
.imap
.lock()
.unwrap()
.disconnect(context);
context
.mvbox_thread
.lock()
.unwrap()
.imap
.lock()
.unwrap()
.disconnect(context);
context.smtp.clone().lock().unwrap().disconnect();