X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fsysdep.c;h=433f3467b1e8a659d566f168945917bbd174aa60;hb=e0288cfdf0bfeed17641a79257c0e92c32630483;hp=732dbc4206a727e4ee86bb7b3529762dad6bfa39;hpb=fdd18024d713681a62d5cc55524a060ca701331a;p=citadel.git diff --git a/citadel/sysdep.c b/citadel/sysdep.c index 732dbc420..433f3467b 100644 --- a/citadel/sysdep.c +++ b/citadel/sysdep.c @@ -1123,6 +1123,9 @@ void InitializeMasterCC(void) { * Bind a thread to a context. (It's inline merely to speed things up.) */ INLINE void become_session(struct CitContext *which_con) { + if (which_con) + ctdl_thread_internal_change_state(CT, CTDL_THREAD_RUNNING); + citthread_setspecific(MyConKey, (void *)which_con ); }