aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ws_connection.go10
1 files changed, 0 insertions, 10 deletions
diff --git a/ws_connection.go b/ws_connection.go
index 62cc05a..2fe7fea 100644
--- a/ws_connection.go
+++ b/ws_connection.go
@@ -187,16 +187,6 @@ func handleConn(
*/
_, b, err := c.Read(ctx)
if err != nil {
- /*
- * TODO: Prioritize context dones... except
- * that it's not really possible. I would just
- * have placed newCtx in here but apparently
- * that causes the connection to be closed when
- * the context expires, which makes it
- * impossible to deliver the final error
- * message. Probably need to look into this
- * design again.
- */
select {
case <-newCtx.Done():
_ = writeText(