Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
notizklotz #1
Member since Dec 2005 · 10 posts · Location: Switzerland
Group memberships: Members
Show profile · Link to this post
Subject: StackOverflowException in MucManager.ChangeAffiliation(Affiliation, Jid, Jid, IqCB, object)
MucManager.ChangeAffiliation(Affiliation affiliation, Jid room, Jid user, IqCB cb, object cbArg) is doing nothing but calling itself which results in an endless loop and a StackOverflowException.

Proposed patch:
Index: MucManager.cs
===================================================================
--- MucManager.cs    (revision 76)
+++ MucManager.cs    (working copy)
@@ -1362,7 +1362,7 @@
 
         private void ChangeAffiliation(Affiliation affiliation, Jid room, Jid user, IqCB cb, object cbArg)
         {
-            ChangeAffiliation(affiliation, room, user, cb, cbArg);
+            ChangeAffiliation(affiliation, room, user, null, null, cb, cbArg);
         }
         private void ChangeAffiliation(Affiliation affiliation, Jid room, Jid user, string nickname, string reason, IqCB cb, object cbArg)
         {
Avatar
Alex #2
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
oh, some copy and paste error. I will fix it and upload the code to SVN.

Thanx Alex
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: agsXMPP RSS