From 8a4c3388e4eb05593b320d971959077f482742eb Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 28 Aug 2013 08:40:02 +0200 Subject: [PATCH] Try to avoid "Mysql2::Error: This connection is in use by: # queue return end - sleep 2 + 8.times {|loop| + sleep 0.25 + } + #sleep 2 if count == 0 render :json => { :action => 'pong' } return