Skip to content

Commit

Permalink
Reset transport (connect) URL on each connect
Browse files Browse the repository at this point in the history
  • Loading branch information
MacDeveloper1 committed Jan 30, 2024
1 parent d0fd1b7 commit 586c48b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/stomp_handler.dart
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class StompHandler {
void start() async {
_isActive = true;
try {
_channel = await platform.connect(config);
_channel = await platform.connect(config..resetSession());
// It can happen that dispose was called while the future above hasn't completed yet
// To prevent lingering connections we need to make sure that we disconnect cleanly
if (!_isActive) {
Expand Down

0 comments on commit 586c48b

Please sign in to comment.