Meebey.SmartIrc4net.IrcConnection.WriteThread._CheckLowBuffer C# (CSharp) Method

_CheckLowBuffer() private method

private _CheckLowBuffer ( ) : bool
return bool
            private bool _CheckLowBuffer()
            {
                if (_LowCount > 0) {
                    if ((_HighCount > 0) ||
                        (_AboveMediumCount > 0) ||
                        (_MediumCount > 0) ||
                        (_BelowMediumCount > 0)) {
                            return true;
                    }

                    string data = (string)((Queue)_Connection._SendBuffer[Priority.Low]).Dequeue();
                    if (_Connection._WriteLine(data) == false) {
                #if LOG4NET
                        Logger.Queue.Warn("Sending data was not sucessful, data is requeued!");
                #endif
                        ((Queue)_Connection._SendBuffer[Priority.Low]).Enqueue(data);
                    }

                    if (_LowCount > 1) {
                        return false;
                    }
                }

                return true;
            }