Implemented a better error handling for ajax requests. Exceptions caused by dropping connections are now handled, too.
This commit is contained in:
parent
0f5292b991
commit
6b8ffe79f4
4 changed files with 63 additions and 53 deletions
|
@ -35,7 +35,10 @@ function process() {
|
|||
|
||||
function stop() {
|
||||
_config.blocking = true;
|
||||
_config.timeout = setTimeout(start, _config.asyncTimeout * 1000);
|
||||
_config.timeout = setTimeout(function() {
|
||||
ok( false, "Test timed out" );
|
||||
start();
|
||||
}, _config.asyncTimeout * 1000);
|
||||
}
|
||||
function start() {
|
||||
if(_config.timeout)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue