Don't close writer channel at client shutdown.
Closing the channel could cause a panic if a c.write was pending. Instead, ensure we send a closeMessage to the writer, and cause the writer to exit when it receives a closeMessage.
Showing
Please register or sign in to comment