summary refs log tree commit diff stats
path: root/lib/pure/asyncdispatch.nim
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pure/asyncdispatch.nim')
-rw-r--r--lib/pure/asyncdispatch.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/asyncdispatch.nim b/lib/pure/asyncdispatch.nim
index 0afc60864..0bacf3bb5 100644
--- a/lib/pure/asyncdispatch.nim
+++ b/lib/pure/asyncdispatch.nim
@@ -1940,7 +1940,7 @@ proc activeDescriptors*(): int {.inline.} =
   ## event loop. This is a cheap operation that does not involve a system call.
   when defined(windows):
     result = getGlobalDispatcher().handles.len
-  else:
+  elif not defined(nimdoc):
     result = getGlobalDispatcher().selector.count
 
 when defined(posix):