Mark our session as deleteable when we exit.
[citadel.git] / citadel / modules / pop3client / serv_pop3client.c
index 331a4d7c6de390d542b02f87a4e697bab4571d47..0790cb52043677987cbb8be22e8cf4810b963cd4 100644 (file)
@@ -136,6 +136,8 @@ void DeletePOP3Aggregator(void *vptr)
        FreeStrBuf(&ptr->IO.SendBuf.Buf);
        FreeStrBuf(&ptr->IO.RecvBuf.Buf);
        DeleteAsyncMsg(&ptr->IO.ReadMsg);
+       ((struct CitContext*)ptr->IO.CitContext)->state = CON_IDLE;
+       ((struct CitContext*)ptr->IO.CitContext)->kill_me = 1;
        FreeAsyncIOContents(&ptr->IO);
        free(ptr);
 }