projects
/
remoteglot
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4166f69
)
Fix a deadlock in the JSON loading code in serve-analysis.js.
author
Steinar H. Gunderson
<sgunderson@bigfoot.com>
Mon, 13 Jun 2016 13:38:53 +0000
(15:38 +0200)
committer
Steinar H. Gunderson
<sgunderson@bigfoot.com>
Mon, 13 Jun 2016 13:38:53 +0000
(15:38 +0200)
server/serve-analysis.js
patch
|
blob
|
history
diff --git
a/server/serve-analysis.js
b/server/serve-analysis.js
index
ce1f89d
..
22bc20d
100644
(file)
--- a/
server/serve-analysis.js
+++ b/
server/serve-analysis.js
@@
-145,7
+145,7
@@
var reread_file = function(event, filename) {
if (json_lock == 1) {
// Already processing; wait a bit.
json_lock = 2;
- setTimeout(function() { json_lock = 1; reread_file(event, filename); }, 100);
+ setTimeout(function() {
if (json_lock == 2)
json_lock = 1; reread_file(event, filename); }, 100);
return;
}
json_lock = 1;