fixes #560 Socket released without global lock
1 file changed