session.c
changeset 39 6d2a560793d3
parent 38 058e5ad9ba79
child 41 0cb519e770ba
equal deleted inserted replaced
38:058e5ad9ba79 39:6d2a560793d3
   145 			iobuf_flush(&entry->iobuf, entry->io.sock);
   145 			iobuf_flush(&entry->iobuf, entry->io.sock);
   146 	}
   146 	}
   147 
   147 
   148 	io_clear(&entry->io);
   148 	io_clear(&entry->io);
   149 	iobuf_clear(&entry->iobuf);
   149 	iobuf_clear(&entry->iobuf);
   150 	 /* 
   150 	/* 
   151 	  * If the session hadn't made it to TRANSACTION
   151 	 * If the session hadn't made it to TRANSACTION
   152 	  * iev_maildrop is not inited.
   152 	 * iev_maildrop is not inited.
   153 	  */
   153 	 */
   154 	if (entry->iev_maildrop) {
   154 	if (entry->iev_maildrop) {
   155 		imsgev_clear(entry->iev_maildrop);
   155 		imsgev_clear(entry->iev_maildrop);
   156 		entry->iev_maildrop->terminate = 1;
   156 		entry->iev_maildrop->terminate = 1;
   157 	}
   157 	}
       
   158 
   158 	logit(LOG_INFO, "%u: session closed", entry->id);
   159 	logit(LOG_INFO, "%u: session closed", entry->id);
   159 	free(entry);
   160 	free(entry);
   160 }
   161 }
   161 
   162 
   162 static void
   163 static void