rem: if (exc == Components.interfaces. calIWcapErrors.WCAP_LOGIN_FAILED) /* timeout */ { 
add: if (testResultCode( exc, Components.interfaces. calIWcapErrors.WCAP_LOGIN_FAILED)) /* timeout */ { 
context:     issueRequest:    function( url, issueFunc, dataConvFunc, receiverFunc )    {        var sessionId = this.getSessionId();                var this_ = this;        issueFunc(            url + ("&id=" + sessionId),            function( data ) {                var wcapResponse = new WcapResponse();                try {                    try {                        wcapResponse.data = dataConvFunc(                            data, wcapResponse );                    }                    catch (exc) {                        if (exc == Components.interfaces.                            calIWcapErrors.WCAP_LOGIN_FAILED) /* timeout */ {                            // getting a new session will throw any exception in                            // this block, thus it is notified into receiverFunc                            this_.getSessionId(                                sessionId /* (old) timed-out session */ );                            // try again:                            this_.issueRequest(                                url, issueFunc, dataConvFunc, receiverFunc );                            return;                        }                        throw exc; // rethrow                    }                }                catch (exc) {                    // setting the request's exception will rethrow exception                    // when request's data is retrieved.                    wcapResponse.exception = exc;                }                receiverFunc( wcapResponse );            } );    },
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/30d02961047b21c123c6585c71a085e40f3e6fa5/calWcapSession.js/buggy/calendar/providers/wcap/calWcapSession.js