From 62ee67091dd966e04dc7c8a0ad0c5bc3a6ea7cd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Sun, 13 Aug 2017 23:35:11 +0200 Subject: [PATCH] Enable support for timeouts in FileDescriptorEvent.wait. --- source/vibe/core/core.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/vibe/core/core.d b/source/vibe/core/core.d index 0f58e83..8111f43 100644 --- a/source/vibe/core/core.d +++ b/source/vibe/core/core.d @@ -1011,7 +1011,7 @@ struct FileDescriptorEvent { Waitable!(IOCallback, cb => eventDriver.sockets.waitForData(m_socket, cb), - (cb) { assert(false, "timeout not supported."); } + cb => eventDriver.sockets.cancelRead(m_socket) ) readwaiter; asyncAwaitAny!true(timeout, readwaiter);