private void work() throws IOException
    {
        while (true)
        {
            try
            {
                Socket acceptedSocket = mQueue.get();
                mProcessor.process(acceptedSocket);
            }
            catch (InterruptedException e)
            {
                e.printStackTrace();
            }
        }
    }