Skip to content

Commit

Permalink
Merge pull request #15 from spiral/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
wolfy-j authored Jan 23, 2018
2 parents 86d80ee + 6444452 commit 24a3689
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
CHANGELOG
=========

## v2.0.1 (23.01.2018)
- support sending empty string payloads without PAYLOAD_NONE flag

## v2.0.0 (17.11.2017)
- ext-sockets is not required anymore
- Connection renamed to Relay
Expand Down
2 changes: 1 addition & 1 deletion source/StreamRelay.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function send($payload, int $flags = null)
throw new Exceptions\TransportException("unable to write prefix to the stream");
}

if (!($flags & self::PAYLOAD_NONE) && !fwrite($this->out, $payload, $size)) {
if (!($flags & self::PAYLOAD_NONE) && fwrite($this->out, $payload, $size) === false) {
throw new Exceptions\TransportException("unable to write payload to the stream");
}

Expand Down

0 comments on commit 24a3689

Please sign in to comment.