projects
/
Biblio-RFID.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
recover from errors in scan tags
[Biblio-RFID.git]
/
examples
/
selfcheck.js
diff --git
a/examples/selfcheck.js
b/examples/selfcheck.js
index
a9cba91
..
3c825bb
100644
(file)
--- a/
examples/selfcheck.js
+++ b/
examples/selfcheck.js
@@
-140,7
+140,10
@@
function scan_tags() {
} else {
console.info('scan_tags');
pending_jsonp++;
} else {
console.info('scan_tags');
pending_jsonp++;
- $.getJSON("/scan?callback=?", got_visible_tags);
+ $.getJSON("/scan?callback=?", got_visible_tags).fail( function(data) {
+ console.error('scan error');
+ pending_jsonp--;
+ });
}
if ( tick > 0 ) {
}
if ( tick > 0 ) {