aboutsummaryrefslogtreecommitdiffstats
path: root/whisper
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-02-24 02:25:50 +0800
committerobscuren <geffobscura@gmail.com>2015-02-24 02:25:50 +0800
commit747647e02a310e75ea1ada335ff99963972ca138 (patch)
tree52a7d2d8d2f36f9c3cd0eacefeeb5c5203a65618 /whisper
parent0b57bad2de08f382c1b36045db4c66b84d207d3b (diff)
parentb2a225a52e45315f3ec90e11707fefa6059d13f5 (diff)
downloaddexon-747647e02a310e75ea1ada335ff99963972ca138.tar
dexon-747647e02a310e75ea1ada335ff99963972ca138.tar.gz
dexon-747647e02a310e75ea1ada335ff99963972ca138.tar.bz2
dexon-747647e02a310e75ea1ada335ff99963972ca138.tar.lz
dexon-747647e02a310e75ea1ada335ff99963972ca138.tar.xz
dexon-747647e02a310e75ea1ada335ff99963972ca138.tar.zst
dexon-747647e02a310e75ea1ada335ff99963972ca138.zip
Merge branch 'master' into develop
Diffstat (limited to 'whisper')
-rw-r--r--whisper/whisper.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/whisper/whisper.go b/whisper/whisper.go
index 50c2f98fd..13209f9a6 100644
--- a/whisper/whisper.go
+++ b/whisper/whisper.go
@@ -127,6 +127,10 @@ func (self *Whisper) Watch(opts Filter) int {
})
}
+func (self *Whisper) Unwatch(id int) {
+ self.filters.Uninstall(id)
+}
+
func (self *Whisper) Messages(id int) (messages []*Message) {
filter := self.filters.Get(id)
if filter != nil {