// Token: 0x060017D5 RID: 6101 RVA: 0x00062688 File Offset: 0x00060888
        private bool WaitForAsyncRead(int timeoutInMs)
        {
            bool flag = false;

            lock (this)
            {
                if (this.m_asyncReadCompleteEvent != null && !this.m_asyncReadCompleteEvent.WaitOne(0, false))
                {
                    flag = true;
                }
            }
            if (flag)
            {
                ExTraceGlobals.NetworkChannelTracer.TraceDebug <int, int>((long)this.GetHashCode(), "WaitForAsyncRead: waiting a max timeout={0}ms on thread {1}", timeoutInMs, DiagCore.GetThreadId());
                if (!this.m_asyncReadCompleteEvent.WaitOne(timeoutInMs, false))
                {
                    ExTraceGlobals.NetworkChannelTracer.TraceError <int>((long)this.GetHashCode(), "WaitForAsyncRead: timed out on thread {0}", DiagCore.GetThreadId());
                    return(false);
                }
            }
            return(true);
        }