Skip to content

Commit 477ae78

Browse files
Fixed subscriber instance reconnect after disconnect.
1 parent 3356526 commit 477ae78

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/lib/Version.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#define __VERSION_H
2626

2727
#define STTP_TITLE "STTP C++ Library"
28-
#define STTP_VERSION "1.0.10"
29-
#define STTP_UPDATEDON "2019-07-03"
28+
#define STTP_VERSION "1.0.11"
29+
#define STTP_UPDATEDON "2019-07-04"
3030

3131
#endif

src/lib/transport/DataSubscriber.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ void SubscriberConnector::SetConnectionRefused(bool connectionRefused)
290290
void SubscriberConnector::ResetConnection()
291291
{
292292
m_connectAttempt = 0;
293+
m_cancel = false;
293294
}
294295

295296
// Gets the hostname of the publisher to connect to.

src/lib/transport/SubscriberInstance.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ void SubscriberInstance::ConnectAsync()
156156
void SubscriberInstance::Connect()
157157
{
158158
SubscriberConnector& connector = m_subscriber->GetSubscriberConnector();
159+
connector.ResetConnection();
159160

160161
// Set up helper objects (derived classes can override behavior and settings)
161162
SetupSubscriberConnector(connector);

0 commit comments

Comments
 (0)