summaryrefslogtreecommitdiff
path: root/cookie.go
diff options
context:
space:
mode:
authorAndrew Gallant <[email protected]>2015-04-26 19:04:54 -0400
committerAndrew Gallant <[email protected]>2015-04-26 19:04:54 -0400
commit3ac861bb079d75ef8b6f2734f7e1f1e6563d95cc (patch)
treea463c12e50dd7a47ded53cd3ed50909c44751099 /cookie.go
parent7fc5ee5088f1fcccec03759b699768dc5cff325d (diff)
Remove panics/fatal errors.
Fixes #9. This makes shutdown a little more graceful, but there's more work to be done here. Namely, all outstanding cookies need to be given the error, otherwise they will block forever.
Diffstat (limited to 'cookie.go')
-rw-r--r--cookie.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/cookie.go b/cookie.go
index 6b1e4fb..d5cdb29 100644
--- a/cookie.go
+++ b/cookie.go
@@ -99,7 +99,6 @@ func (c Cookie) replyChecked() ([]byte, error) {
case err := <-c.errorChan:
return nil, err
}
- panic("unreachable")
}
// replyUnchecked waits for a response on either the replyChan or pingChan
@@ -123,7 +122,6 @@ func (c Cookie) replyUnchecked() ([]byte, error) {
case <-c.pingChan:
return nil, nil
}
- panic("unreachable")
}
// Check is used for checked requests that have no replies. It is a mechanism
@@ -164,5 +162,4 @@ func (c Cookie) Check() error {
case <-c.pingChan:
return nil
}
- panic("unreachable")
}