Skip to content

Commit

Permalink
Merge pull request #2 from xxvholic/hotfix/fix_http_publish_use_conntcp
Browse files Browse the repository at this point in the history
fix use conntcp when http mode
  • Loading branch information
moolex authored Sep 29, 2017
2 parents 4a70d91 + 821dfbf commit 76a68f6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Connection/Nsqd.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,10 @@ public function setLifecycle($seconds)
*/
public function setProducer()
{
$this->connTCP->setRecycling($this->lifecycle);
if ($this->connTCP)
{
$this->connTCP->setRecycling($this->lifecycle);
}

return $this;
}
Expand Down

0 comments on commit 76a68f6

Please sign in to comment.