Skip to content

Commit

Permalink
Temporarily initialize socket for every write
Browse files Browse the repository at this point in the history
  • Loading branch information
carstenwindler committed Jan 25, 2017
1 parent bdf3c93 commit fdf5168
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Gelf/Transport/StreamSocketClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,7 @@ private function buildSocket()
*/
public function getSocket()
{
// lazy initializing of socket-descriptor
if (!$this->socket) {
$this->socket = $this->buildSocket();
}
$this->socket = $this->buildSocket();

return $this->socket;
}
Expand Down

0 comments on commit fdf5168

Please sign in to comment.