aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--applause.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/applause.lua b/applause.lua
index 20bce20..96beada 100644
--- a/applause.lua
+++ b/applause.lua
@@ -188,8 +188,10 @@ Stream.channels = 1
-- A stream, produces an infinite number of the same value by default
-- (eternal quietness by default)
function Stream:gtick()
+ local value = self.value
+
return function()
- return self.value
+ return value
end
end