This commit is contained in:
Alexey Shcherbakov 2013-02-24 20:00:12 -08:00
parent a5b8d012dc
commit d13fbcd10c
1 changed files with 2 additions and 2 deletions

View File

@ -170,9 +170,9 @@ void ConnectionPrivate::tune( const QAMQP::Frame::Method & frame )
heartbeatTimer_->setInterval(heartbeat * 1000); heartbeatTimer_->setInterval(heartbeat * 1000);
if(heartbeatTimer_->interval()) if(heartbeatTimer_->interval())
{ {
heartbeatTimer_->start() heartbeatTimer_->start();
} else { } else {
heartbeatTimer_->stop() heartbeatTimer_->stop();
} }
} }
tuneOk(); tuneOk();