Changeset 10021 for trunk/src/gajim.py

Show
Ignore:
Timestamp:
07/25/08 00:14:42 (4 months ago)
Author:
js
Message:

Renegotiate if the remote end got disconnected and now got back online.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/gajim.py

    r10012 r10021  
    777777                                # disable encryption, since if any messages are 
    778778                                # lost they'll be not decryptable (note that 
    779                                 # this contradicts XEP-0201 - trying to get the 
     779                                # this contradicts XEP-0201 - trying to get that 
    780780                                # in the XEP, though) 
     781                                # 
     782                                # FIXME: This *REALLY* are TOO many leves of 
     783                                #        indentation! We even need to introduce 
     784                                #        a temp var here to make it somehow fit! 
    781785                                if gajim.connections[account].sessions. \ 
    782786                                has_key(ji): 
    783787                                        for sess in gajim.connections \ 
    784788                                        [account]. sessions[ji].values(): 
     789                                                ctrl = sess.control 
     790                                                if ctrl: 
     791                                                        ctrl.no_autonegotiation\ 
     792                                                                = False 
    785793                                                if sess.enable_encryption: 
    786794                                                        sess.terminate_e2e()