Subject: | error when $result not set at line 87 |
Date: | Sun, 9 Oct 2011 01:34:12 -0500 |
To: | bug-dancer-plugin-redis [...] rt.cpan.org |
From: | Rick Moore <xbj9000 [...] gmail.com> |
Hi, I fixed this for myself a while back and waited to report it to
make sure I was right, so I can't remember the exact error. Basically
my Dancer app would sometimes throw an error at Dancer/Plugin/Redis.pm
line 87 when $result was somehow undefined. I think I have fixed this
by simply adding a test for the existence of $result. I have not seen
the error since I did this. The proper action should be to re-establish
a handle anyway, so, I think this is a correct solution. I modified
line 87 like so:
if ($result && $result eq "PONG") {
Thanks..