]> git.0d.be Git - empathy.git/commit
Fix a theoretical race listing pending messages
authorWill Thompson <will.thompson@collabora.co.uk>
Sat, 25 Apr 2009 09:07:31 +0000 (10:07 +0100)
committerWill Thompson <will.thompson@collabora.co.uk>
Sat, 25 Apr 2009 09:07:31 +0000 (10:07 +0100)
commitb747b97984784a82724e538942854b89d3309006
tree344ecb6d4c86c698b0ad68934ee61f35372c6aee
parentc982861667c0441419ee4fdee2ea399ef8f26416
Fix a theoretical race listing pending messages

If you call ListPendingMessages before connecting to Received, the
following could theoretically occur:

    Empathy --- ListPendingMessages --> CM
    Empathy <-- LPM returns         --- CM
                                 <----- CM -----> Received
    Empathy connects to Received

and thus you could miss a message. Connecting to Received before calling
ListPendingMessages avoids this (mostly theoretical) bug.

Signed-off-by: Will Thompson <will.thompson@collabora.co.uk>
libempathy/empathy-tp-chat.c