Leaving multi-join room fails

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

Post Reply
duncanhall
Posts: 29
Joined: 04 May 2008, 14:52
Contact:

Leaving multi-join room fails

Post by duncanhall »

Flash AS2 API - Version 1.5.4
SF Server - Version 1.6.2

I am using the multi-join feature to allow users to remain in the lobby while also entering another game room.

I can successfully add a user to both rooms, and everything works as expected until a user leaves the game room (but remains in the lobby).

A typical, simple scenario might be:

-User connects and is auto-joined to the lobby.
-User joins a game room (but also remains in the lobby).
-All users in the game room leave and the room is deleted.

At this point the user should simply just reside in the lobby, as they have been there all along, and they are no longer in the game room (it doesn't exist). However, the user seems to remain in limbo somewhat. If they try and send a public message, it gets sent with a room ID of the game room that was deleted, which obviously never gets received.

Using the admin tool, I can see that the game room definately gets deleted, and the user is definately still in the lobby. yet the pub message is still broadcast with a non existant room ID

Can anyone offer any help on this?

Thanks.
duncanhall
Posts: 29
Joined: 04 May 2008, 14:52
Contact:

Post by duncanhall »

Ok, this is becoming a bit of a show-stopper, and I can't see where I could be going wrong with this, so if someone can please offer any help it would be much appreciated.

A more basic reproduction, but still the same problem:

-User is in the lobby (RoomX).
-User joins a game room (RoomY).
-User is now in RoomX and RoomY
-User sends a public message - this gets sent only to RoomY
-User leaves RoomY, is now just in RoomX
-User sends a public message, but this gets sent with with the roomID of RoomY, even though the user has left that room.
-Also, even for users that are still in RoomY, they dont receive the message.
duncanhall
Posts: 29
Joined: 04 May 2008, 14:52
Contact:

Post by duncanhall »

Anyone?
duncanhall
Posts: 29
Joined: 04 May 2008, 14:52
Contact:

Post by duncanhall »

As no-one seems to be able to offer any kind of solution to this, and as it seems to go against the expected behaviour, I am now entering this as a bug.

http://forums.smartfoxserver.com/viewtopic.php?t=3409

Thanks.
Post Reply