Changeset 323 for trunk/instant_messenger/js/client.js
- Timestamp:
- 06/20/08 15:16:25 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/instant_messenger/js/client.js
r321 r323 149 149 if ( !_disconnected ) 150 150 { 151 _conn.go('$this.Ujabber.getContacts', 152 function(data) 153 { 154 if ( data == 'disconnected' ) 155 setTimeout(_contacts, 3000); 156 } 157 ); 151 _conn.go('$this.Ujabber.getContacts'); 158 152 setTimeout(function() 159 153 { … … 294 288 } 295 289 290 function _check_connection() 291 { 292 if ( !_disconnected ) 293 _conn.go('t.checkConnection'); 294 } 295 296 296 function Client() 297 297 { 298 298 _request(); 299 299 setTimeout(_contacts, 3000); 300 window.setInterval(_check_connection, 20000); 300 301 } 301 302
Note: See TracChangeset
for help on using the changeset viewer.