Threads werden nicht mehr im Konstruktor gestartet, um race conditions zu

vermeiden
This commit is contained in:
2014-05-01 18:10:01 +02:00
parent 9bf7abb465
commit 7ffba85903
6 changed files with 31 additions and 8 deletions

View File

@@ -17,7 +17,6 @@ namespace WorldOfPeacecraft
this.Client = client;
this.Buffer = buffer;
this.SenderThread = new Thread(new ThreadStart(this.threadStart));
SenderThread.Start();
}
public void Send (String message)
@@ -34,6 +33,11 @@ namespace WorldOfPeacecraft
}
}
public void Start()
{
SenderThread.Start();
}
public void Stop()
{
SenderThread.Abort();