1

Closed

GetNTPTime() should use the using() clause on socket creation

description

The using() construct would ensure that socket resources are cleaned up properly if an exception occurs while using the socket.
 
using(Socket s = new Socket(...)) {
}
Closed May 5, 2011 at 6:11 PM by misenhower

comments

misenhower wrote May 5, 2011 at 6:10 PM

Thanks! Fixed in changeset 3856.

wrote May 5, 2011 at 6:11 PM

wrote Feb 13, 2013 at 3:48 AM

wrote May 16, 2013 at 2:06 AM