parent
							
								
									9a0403f446
								
							
						
					
					
						commit
						8bd6eb433f
					
				
					 1 changed files with 6 additions and 2 deletions
				
			
		| 
						 | 
					@ -1501,8 +1501,12 @@ imap_cleanup( void )
 | 
				
			||||||
	for (ctx = unowned; ctx; ctx = nctx) {
 | 
						for (ctx = unowned; ctx; ctx = nctx) {
 | 
				
			||||||
		nctx = ctx->next;
 | 
							nctx = ctx->next;
 | 
				
			||||||
		set_bad_callback( ctx, (void (*)(void *))imap_cancel_store, ctx );
 | 
							set_bad_callback( ctx, (void (*)(void *))imap_cancel_store, ctx );
 | 
				
			||||||
		((imap_store_t *)ctx)->expectBYE = 1;
 | 
							if (((imap_store_t *)ctx)->state != SST_BAD) {
 | 
				
			||||||
		imap_exec( (imap_store_t *)ctx, 0, imap_cleanup_p2, "LOGOUT" );
 | 
								((imap_store_t *)ctx)->expectBYE = 1;
 | 
				
			||||||
 | 
								imap_exec( (imap_store_t *)ctx, 0, imap_cleanup_p2, "LOGOUT" );
 | 
				
			||||||
 | 
							} else {
 | 
				
			||||||
 | 
								imap_cancel_store( ctx );
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue