views:

98

answers:

1

Hey guys,

I recently got into this article. It makes a chat server and people can connect to it like an AIM. The problem how would I disconnect from the server from the client. Because if I close the client application when its connected to the server it will crash the server as well. Please let me know if anyone has any solutions...

Thanks

+1  A: 

Wherever in your code the crash is occurring, you need to set a try/catch block to catch a Connection Closed exception.

Aequitarum Custos
What is the Connection Code exception called?
Kevin
I just call it Try/ Catch ex as Exception/End try kind of thing
Kevin