conn.shutdown was only set/accessed in handleShutdown, which in turn is only called on termination of queryLoop and hence multiple invocations are impossible.
conn.shutdown was only set/accessed in handleShutdown, which in turn is only called on termination of queryLoop and hence multiple invocations are impossible.