Changes to number of network tasks

number of network tasks functions only when network polling mode is set to threaded.