BoltEngine / Bolt-Tracker

New issue tracker for Photon Bolt
10 stars 2 forks source link

`SessionListUpdated` is not called if there is no server (1.2.4) #100

Closed ivanquirino closed 5 years ago

ivanquirino commented 5 years ago

How to reproduce issue

  1. Make sure there are no servers already started
  2. BoltLauncher.StarClient()

Expected Behavior

SessionListUpdated callback shoud be fired. This way I can shutdown and start as server if there is none. In 1.2.0.3 this callback is called

Actual behavior

The callback is ony fired if any server creates a room

Configuration

ramonmelo commented 5 years ago

Hello,

This was an erratic behavior, as the name implies, this event will occur only when the list has been updated when sessions are added or removed from the list. You can always check the BoltNetwork.SessionList to get the latest available sessions.

ivanquirino commented 5 years ago

@ramonmelo Even if I already have a session created, calling BoltNetwork.SessionList on BoltStartDone callback doesn't return any sessions. I have to wait until SessionListUpdated is fired. That's okay though, I will set some timers to check for sessions. Thanks!

P.S.: Nice to find someone from Brazil around here!