BinaryStudioAcademy / bsa-2023-towhub

1 stars 12 forks source link

th-383: Bug: When the driver logs out of the system, and another driver logs in, the shift is opened on the previous driver #411

Closed TetianaDoroshko closed 11 months ago

TetianaDoroshko commented 11 months ago

The problem was in following: When driver authorize and start shift then log out and another driver authorize and start shift during one socket connection, we have 2 different drivers in their own socket rooms under the same client socket id. So the event "start shift" was sent the first found. In PR was added reconnect socket client while driver authorize.