2 Replies Latest reply on Apr 19, 2012 5:25 AM by KevinTUDelft

    NetGroup.Connect.Closed before NetGroup.Connect.Success on NetGroup connect when using local var

    KevinTUDelft

      Hi,

       

      I have discovered a peculiar bug. When creating a NetGroup the NetStatusEvent's thrown differ based on where the NetGroup variable is defined:

       

      A) When the variable is declared locally, like: var netGroup:NetGroup = new NetGroup(connection, groupspecifier), the event listener on the NetConnection receives two events:

           1. NetGroup.Connect.Closed

           2. NetGroup.Connect.Success

      B) When however declaring the NetGroup as a global variable in the class and assigning the new NetGroup to it in the function (following the receipt of the NetConnection.Connect.Success) I only receive the NetGroup.Connect.Success (as I would expect).

       

      Can you reproduce this behavior and comfirm whether this is indeed a bug?

       

      Regards,

       

      Kevin