summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOmar Roth <omarroth@hotmail.com>2018-02-05 18:52:21 -0600
committerOmar Roth <omarroth@hotmail.com>2018-02-05 18:52:21 -0600
commit0e704056a17e1af4ea91da1e9f85884101bf1bd9 (patch)
tree5557259158348bb55c25844198fa7b226e6b8a27
parent2e402c197777126bdb3d57df8f09ab4784c0f5b4 (diff)
downloadinvidious-0e704056a17e1af4ea91da1e9f85884101bf1bd9.tar.gz
invidious-0e704056a17e1af4ea91da1e9f85884101bf1bd9.tar.bz2
invidious-0e704056a17e1af4ea91da1e9f85884101bf1bd9.zip
Make sure client gets returned to pool
-rw-r--r--src/invidious.cr2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/invidious.cr b/src/invidious.cr
index 53721d7b..592028e3 100644
--- a/src/invidious.cr
+++ b/src/invidious.cr
@@ -203,6 +203,8 @@ get "/watch" do |env|
calculated_rating = 0.0
end
+ pool << client
+
templated "watch"
end