pika/pika — pull request #503 by kherrala (2014-09-11 07:14:17+00:00)
Title: Fix heartbeat behaviour after connection failure.

Make sure socket is closed and heartbeat is not executed when no longer active.

This is one way to fix issue #502