[Modify] Rename it

This commit is contained in:
sta 2021-04-23 19:34:58 +09:00
parent e8634d9831
commit 51418c3dd4

View File

@ -403,12 +403,12 @@ namespace WebSocketSharp.Net
#region Private Methods #region Private Methods
private void cleanupContextQueue (bool sendServiceUnavailable) private void cleanupContextQueue (bool force)
{ {
if (_contextQueue.Count == 0) if (_contextQueue.Count == 0)
return; return;
if (!sendServiceUnavailable) { if (force) {
_contextQueue.Clear (); _contextQueue.Clear ();
return; return;
@ -458,7 +458,7 @@ namespace WebSocketSharp.Net
if (_listening) { if (_listening) {
_listening = false; _listening = false;
cleanupContextQueue (!force); cleanupContextQueue (force);
cleanupContextRegistry (); cleanupContextRegistry ();
var name = GetType ().ToString (); var name = GetType ().ToString ();
@ -799,7 +799,7 @@ namespace WebSocketSharp.Net
_listening = false; _listening = false;
cleanupContextQueue (true); cleanupContextQueue (false);
cleanupContextRegistry (); cleanupContextRegistry ();
var msg = "The listener is stopped."; var msg = "The listener is stopped.";