| | 166 | else { |
|---|
| | 167 | g_static_rec_mutex_lock (store->idle_prefix_lock); |
|---|
| | 168 | if (store->idle_prefix) |
|---|
| | 169 | { |
|---|
| | 170 | int nwritten=0; |
|---|
| | 171 | idle_debug ("Sending DONE in camel_imap_store_stop_idle (no current folder?)\n"); |
|---|
| | 172 | CAMEL_SERVICE_REC_LOCK (store, connect_lock); |
|---|
| | 173 | nwritten = camel_stream_printf (store->ostream, "DONE\r\n"); |
|---|
| | 174 | CAMEL_SERVICE_REC_UNLOCK (store, connect_lock); |
|---|
| | 175 | g_free (store->idle_prefix); |
|---|
| | 176 | store->idle_prefix = NULL; |
|---|
| | 177 | } |
|---|
| | 178 | g_static_rec_mutex_unlock (store->idle_prefix_lock); |
|---|
| | 179 | } |
|---|