Core: Misc fixes

This commit is contained in:
hondacrx
2018-05-26 13:09:46 -04:00
parent 3f7f1a7356
commit f7e557ab71
5 changed files with 12 additions and 7 deletions
@@ -38,6 +38,12 @@ namespace Framework.Networking
return true;
}
public void Wait()
{
_thread.Join();
_thread = null;
}
public int GetConnectionCount()
{
return _connections;
+3 -3
View File
@@ -65,9 +65,9 @@ namespace Framework.Networking
void Wait()
{
//if (_threadCount != 0)
//for (int i = 0; i < _threadCount; ++i)
//_threads[i].Wait();
if (_threadCount != 0)
for (int i = 0; i < _threadCount; ++i)
_threads[i].Wait();
}
public virtual void OnSocketOpen(Socket sock)