Permalink
Browse files

Added a sleep call for a second before establishing another connection.

  • Loading branch information...
1 parent 0afb876 commit a5b70a5cbd087f2b2c697a698a8ff64074535203 Allen Torres committed Dec 28, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/Redisent/Redisent.php
@@ -88,6 +88,7 @@ function __call($name, $args) {
throw new Exception('Failed to write entire command to stream');
}else{
fclose($this->__sock);
+ sleep(1);
$this->establishConnection();
$reconnects++;
}

0 comments on commit a5b70a5

Please sign in to comment.