fixed socket threads

Signed-off-by: Loyid Kim <thepuruya@gmail.com>