xmpp/roster.go
changeset 134 80b764fa2f08
parent 128 8342afcffc92
child 139 12c48d1157dc
--- a/xmpp/roster.go	Sun Sep 08 14:37:56 2013 -0700
+++ b/xmpp/roster.go	Sun Sep 08 14:40:35 2013 -0700
@@ -59,6 +59,9 @@
 				f()
 			}
 			iq, ok := stan.(*Iq)
+			if !ok {
+				continue
+			}
 			if iq.Type != "set" {
 				continue
 			}