aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/internal/poll/fd_windows.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/internal/poll/fd_windows.go b/src/internal/poll/fd_windows.go
index 699239c57b..8340794545 100644
--- a/src/internal/poll/fd_windows.go
+++ b/src/internal/poll/fd_windows.go
@@ -201,10 +201,7 @@ var operationPool = sync.Pool{
// waitIO waits for the IO operation to complete,
// handling cancellation if necessary.
func (fd *FD) waitIO(o *operation) error {
- if fd.isBlocking {
- panic("can't wait on blocking operations")
- }
- if !fd.pollable() {
+ if o.o.HEvent != 0 {
// The overlapped handle is not added to the runtime poller,
// the only way to wait for the IO to complete is block until
// the overlapped event is signaled.