Fixed chat session tests

This commit is contained in:
James Booth
2015-01-10 00:25:27 +00:00
parent 5e7d2f5f91
commit 9bd2315d83
5 changed files with 38 additions and 188 deletions

View File

@@ -92,6 +92,9 @@ chat_session_get(const char * const barejid)
void
chat_session_on_recipient_activity(const char * const barejid, const char * const resource)
{
assert(barejid != NULL);
assert(resource != NULL);
ChatSession *session = g_hash_table_lookup(sessions, barejid);
if (session) {
// session exists with resource, do nothing