From 72540d7eaf1f3e1e0b92925d0660b78744835414 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Wed, 27 Sep 2017 17:43:08 +0200 Subject: [PATCH] Work around DigitalMars/optlink#18. --- source/vibe/internal/async.d | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/vibe/internal/async.d b/source/vibe/internal/async.d index a2369b8..f151a6d 100644 --- a/source/vibe/internal/async.d +++ b/source/vibe/internal/async.d @@ -116,7 +116,8 @@ void asyncAwaitAny(bool interruptible, Waitables...)(string func = __FUNCTION__) ret ~= q{ alias PT%1$s = ParameterTypeTuple!(Waitables[%1$s].Callback); scope callback_%1$s = (%2$s) @safe nothrow { - () @trusted { logDebugV("siw %%x", &still_inside); } (); + // NOTE: this triggers DigitalMars/optlink#18 + //() @trusted { logDebugV("siw %%x", &still_inside); } (); debug(VibeAsyncLog) logDebugV("Waitable %%s in %%s fired (istask=%%s).", %1$s, func, t != Task.init); assert(still_inside, "Notification fired after asyncAwait had already returned!"); fired[%1$s] = true;