Ignore:
Timestamp:
04/22/10 17:12:12 (14 years ago)
Author:
alexandrecorreia
Message:

Ticket #986 - Correcao para evitar o excesso de requisicoes, quando o servidor aceita apenas uma.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/jabberit_messenger/trophy_expresso/js/trophyim.js

    r2607 r2620  
    420420                if( status == Strophe.Status.CONNFAIL ) 
    421421                { 
    422                         Strophe.info('Strophe failed to connect.'); 
    423422            TrophyIM.delCookie('trophyim_bosh_xid'); 
    424             TrophyIM.showLogin(); 
     423            TrophyIM.statusConn.connected = false; 
    425424        } 
    426425                 
    427426                if( status == Strophe.Status.DISCONNECTING ) 
    428427                { 
    429                         Strophe.info('Strophe is disconnecting.'); 
     428                        TrophyIM.statusConn.connected = false; 
    430429        } 
    431430                 
    432431                if( status == Strophe.Status.DISCONNECTED ) 
    433432                { 
    434                         Strophe.info('Strophe is disconnected.'); 
    435433            TrophyIM.delCookie('trophyim_bosh_xid'); 
    436             TrophyIM.showLogin(); 
     434             
     435            TrophyIM.statusConn.connected = false; 
     436             
     437                        setTimeout(function() 
     438                        { 
     439                    TrophyIM.showLogin(); 
     440                     
     441                     
     442                        },10000); 
     443                         
     444            loadIM.clrAllContacts();     
     445             
     446            loadIM.setStatusJabber("Desconectado","unavailable"); 
     447             
     448            delete TrophyIM.rosterObj.roster; 
     449            delete TrophyIM.rosterObj.groups; 
    437450        } 
    438451                 
     
    442455                        TrophyIM.statusConn.connected = true; 
    443456            TrophyIM.showClient(); 
    444                         Strophe.info('Strophe is connected.'); 
    445457        } 
    446458    }, 
Note: See TracChangeset for help on using the changeset viewer.