Skip navigation
KevinTUDelft
Currently Being Moderated

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

Apr 18, 2012 7:28 AM

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

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points