jgauffin / griffin.networking

Networking library for .NET
http://blog.gauffin.org/2012/05/griffin-networking-a-somewhat-performant-networking-library-for-net/
GNU Lesser General Public License v3.0
108 stars 35 forks source link

ServerClientContext.Close() needs lock #9

Closed yjchun closed 11 years ago

yjchun commented 11 years ago

When I call Close() on clients which is already (or about to be) closed, sometimes, NullPointerException is raised due to race condition. Close() needs to be thread safe.

jgauffin commented 11 years ago

Recoded closing instead. Should work in the next commit