Skip to content
Snippets Groups Projects
  1. Nov 19, 2022
  2. Nov 04, 2022
  3. Oct 29, 2022
  4. Oct 20, 2022
  5. Oct 18, 2022
  6. Nov 21, 2021
  7. Nov 17, 2021
  8. Nov 03, 2021
    • Wolf Clement's avatar
      Handle cases where getPlayerSlot() returns undefined · acfd85f5
      Wolf Clement authored
      When bancho.js joins an existing lobby, you can receive playerMoved or
      playerLeft events *before* bancho.js had the time to fetch the lobby
      info. When that happens, an unhandled error is thrown, since "undefined"
      is not a valid key for the slots array.
      
      I chose to just check if getPlayerSlot() returns something, but a better
      fix might be to ignore those events until the lobby is initialized.
      acfd85f5
  9. Sep 20, 2021
  10. Sep 19, 2021
  11. Jun 15, 2021
  12. Jun 02, 2021
  13. Mar 14, 2021
Loading