Fixed thread issue

Fixed thread issue at the server side.
Merge branch 'master' of https://github.com/rahamannaik/sysprog

Conflicts:
	client.c