diff options
author | Sven Moritz Hallberg <sm@khjk.org> | 2008-02-11 22:20:35 +0100 |
---|---|---|
committer | Sven Moritz Hallberg <sm@khjk.org> | 2008-02-11 22:20:35 +0100 |
commit | c59530844d25ae814141cf56f0fa810968e8df55 (patch) | |
tree | f1f76ff93585197f77f255c27cf6434adc23138d /irc.c | |
parent | d6fdf44c54ac2aecfd0c94a2d56be04e44a51eb3 (diff) |
- use a recursive otr_mutex
- implement 'otr forget fingerprint' and 'otr forget context' commands
Diffstat (limited to 'irc.c')
-rw-r--r-- | irc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -130,7 +130,7 @@ irc_t *irc_new( int fd ) conf_loaddefaults( irc ); irc->otr_us = otrl_userstate_create(); - irc->otr_mutex = g_mutex_new(); + g_static_rec_mutex_init(&irc->otr_mutex); return( irc ); } @@ -283,7 +283,7 @@ void irc_free(irc_t * irc) } otrl_userstate_free(irc->otr_us); - g_mutex_free(irc->otr_mutex); + g_static_rec_mutex_free(&irc->otr_mutex); g_free(irc); |