projects
/
tricorder.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb77302
)
make sure we only shut down the stream if we actually have an active stream
author
Robert Kaiser
<kairo@kairo.at>
Sun, 14 Sep 2014 20:48:13 +0000
(22:48 +0200)
committer
Robert Kaiser
<kairo@kairo.at>
Sun, 14 Sep 2014 20:48:13 +0000
(22:48 +0200)
js/tricorder.js
patch
|
blob
|
blame
|
history
diff --git
a/js/tricorder.js
b/js/tricorder.js
index 317fbca063edbe99cc21e64c3f6d16f29d772c0e..50b0625c6fefe96db91c9df7ff9effbea79d5cb4 100644
(file)
--- a/
js/tricorder.js
+++ b/
js/tricorder.js
@@
-281,8
+281,10
@@
var gModSound = {
window.requestAnimationFrame(gModSound.paintAnalyzerFrame);
},
deactivate: function() {
- gModSound.mDisplay.active = false;
- gModSound.mAudio.stream.stop();
+ if (gModSound.mDisplay.active) {
+ gModSound.mAudio.stream.stop();
+ gModSound.mDisplay.active = false;
+ }
gSounds.scan.pause();
},
}