Skip to content

Commit

Permalink
Use blocking driver on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
trowski committed Jun 23, 2017
1 parent ad309f0 commit edc6c09
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/functions.php
Expand Up @@ -42,6 +42,10 @@ function driver(): Driver {
return new EioDriver;
}

if (\strncasecmp(\PHP_OS, "WIN", 3) === 0) {
return new BlockingDriver;
}

return new ParallelDriver;
}

Expand Down

1 comment on commit edc6c09

@kelunik
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.