Skip to content

Commit

Permalink
server: PoweredRailVehicle manually disconnect Decoder
Browse files Browse the repository at this point in the history
  • Loading branch information
gfgit committed Jul 6, 2024
1 parent 61411e5 commit 2204210
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/src/vehicle/rail/poweredrailvehicle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ PoweredRailVehicle::~PoweredRailVehicle()
void PoweredRailVehicle::destroying()
{
decoder = nullptr;

// decoder propertyChanged is not emitted when object is dying
// So disconnect manually
decoderConnection.disconnect();
RailVehicle::destroying();
}

Expand Down

0 comments on commit 2204210

Please sign in to comment.