[Modify] Rename it
This commit is contained in:
parent
e8634d9831
commit
51418c3dd4
@ -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.";
|
||||||
|
Loading…
Reference in New Issue
Block a user