This method signals that the running thread defined by this class should terminate (by setting writeThreadRunning to false).  There's a loop in the run method that is conditional on this flag that calls writer.writeOne, then sleeps for 10 ms (if the writer indicates it cannot write); this loop is what actually writes packets out to the connected socket's OutputStream.  The wait here, therefore, is to wait for at most one iteration of that loop.  As long as writeOne doesn't take a long time to complete, a second is probably overkill....but writeOne takes longer as we up the # of bytes we send at a time.  I'll fix this comment because it's really just a warning for when we start messing with the max write size.