diff Net/ConnectionList.cs @ 108:819fb56a56ea

Removed rate limiting code from TCPServer
author Ivo Smits <Ivo@UCIS.nl>
date Mon, 27 Oct 2014 23:24:32 +0100
parents 3ab940a0c7a0
children
line wrap: on
line diff
--- a/Net/ConnectionList.cs	Sat Oct 11 14:08:10 2014 +0200
+++ b/Net/ConnectionList.cs	Mon Oct 27 23:24:32 2014 +0100
@@ -67,7 +67,7 @@
 			}
 		}
 		public INetworkConnection this[int index] {
-			get { return _list[index]; }
+			get { lock (_list) return _list[index]; }
 			set { throw new NotSupportedException(); }
 		}
 		public int IndexOf(INetworkConnection item) {