Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixing stomp_writable() check so we can catch when connect failed.
  • Loading branch information
gena01 committed Jun 5, 2015
1 parent 15a3b9a commit eb55496
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stomp.c
Expand Up @@ -181,7 +181,7 @@ int stomp_writable(stomp_t *stomp)
int n;

n = php_pollfd_for_ms(stomp->fd, POLLOUT, 1000);
if (n < 1) {
if (n != POLLOUT) {
#ifndef PHP_WIN32
if (n == 0) {
errno = ETIMEDOUT;
Expand Down

0 comments on commit eb55496

Please sign in to comment.