summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2020-11-13 13:50:57 +0100
committerAraq <rumpf_a@web.de>2020-11-13 13:50:57 +0100
commit19d52033f885a686f39b3f1b52564246b0fade83 (patch)
tree32dbdb241cbb51c9c1089238a6ecfa87bdf596f3
parentcb19dc53ca49a237770271a3559772cc545e747f (diff)
downloadNim-19d52033f885a686f39b3f1b52564246b0fade83.tar.gz
fixes 'nim doc'
-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):
d='n125' href='#n125'>125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187