[PATCH 1/1] server: Check whether the cursor has been set for a thread input.