Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Commit

Permalink
[fix #5494997] Fix for Mojito client throwing on tunnel timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
add0n committed Jun 18, 2012
1 parent d284091 commit 9b86ca5
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion source/lib/app/autoload/transport/io_facade.client-optional.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,19 @@ YUI.add('io-facade', function(Y) {

handleResponse: function(id, o, badcookie) {
var time = (new Date()) - txTimes[id],
respData = Y.JSON.parse(o.responseText),
respData,
txId,
callback;

try {
respData = Y.JSON.parse(o.responseText);
txId = respData.resps[0].txId,
callback = cbs[txId];
} catch (e) {
respData = e.message;
txId = null;
callback = null;
}

delete cbs[txId];
this.fire('transactionResponse', {
Expand Down

0 comments on commit 9b86ca5

Please sign in to comment.