summaryrefslogtreecommitdiff
path: root/ses.go
diff options
context:
space:
mode:
Diffstat (limited to 'ses.go')
-rw-r--r--ses.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/ses.go b/ses.go
index 0f9e7b4..537b1a4 100644
--- a/ses.go
+++ b/ses.go
@@ -79,14 +79,18 @@ func (n *Node) Session() *Session {
return s
}
-func (s *Session) Register(willReply bool, p ...interface{}) *Registration {
+func (s *Session) register(willReply bool, p Tuple) *Registration {
r := &Registration{}
r.recv = s
- r.pat = Tup(p...)
+ r.pat = p
r.willReply = willReply
return r
}
+func (s *Session) Register(willReply bool, p ...interface{}) *Registration {
+ return s.register(willReply, Tup(p...))
+}
+
func (s *Session) Close() {
s.node.lock.Lock()
s.node.unregMatch(func(r *Registration) bool {