[xharness] Rename variable to fix compiler warning. (#308)
Fixes this warning: SimpleHttpListener.cs(12,8): warning CS0108: `xharness.SimpleHttpListener.connected' hides inherited member `xharness.SimpleListener.connected'. Use the new keyword if hiding was intended
This commit is contained in:
Родитель
19cceab4d5
Коммит
fb607bef03
|
@ -9,7 +9,7 @@ namespace xharness
|
||||||
public class SimpleHttpListener : SimpleListener
|
public class SimpleHttpListener : SimpleListener
|
||||||
{
|
{
|
||||||
HttpListener server;
|
HttpListener server;
|
||||||
bool connected;
|
bool connected_once;
|
||||||
|
|
||||||
public override void Initialize ()
|
public override void Initialize ()
|
||||||
{
|
{
|
||||||
|
@ -78,8 +78,8 @@ namespace xharness
|
||||||
|
|
||||||
switch (request.RawUrl) {
|
switch (request.RawUrl) {
|
||||||
case "/Start":
|
case "/Start":
|
||||||
if (!connected) {
|
if (!connected_once) {
|
||||||
connected = true;
|
connected_once = true;
|
||||||
Connected (request.RemoteEndPoint.ToString ());
|
Connected (request.RemoteEndPoint.ToString ());
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче