[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
private void cleanupContextQueue (bool sendServiceUnavailable)
private void cleanupContextQueue (bool force)
{
if (_contextQueue.Count == 0)
return;
if (!sendServiceUnavailable) {
if (force) {
_contextQueue.Clear ();
return;
@ -458,7 +458,7 @@ namespace WebSocketSharp.Net
if (_listening) {
_listening = false;
cleanupContextQueue (!force);
cleanupContextQueue (force);
cleanupContextRegistry ();
var name = GetType ().ToString ();
@ -799,7 +799,7 @@ namespace WebSocketSharp.Net
_listening = false;
cleanupContextQueue (true);
cleanupContextQueue (false);
cleanupContextRegistry ();
var msg = "The listener is stopped.";