Skip to content

Commit 4ef1f12

Browse files
Improved shutdown speed when auto-reconnect is active.
1 parent 34a63f3 commit 4ef1f12

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
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.11"
29-
#define STTP_UPDATEDON "2019-07-04"
28+
#define STTP_VERSION "1.0.12"
29+
#define STTP_UPDATEDON "2019-07-08"
3030

3131
#endif

src/lib/transport/DataSubscriber.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1256,7 +1256,10 @@ void DataSubscriber::Disconnect(bool autoReconnecting)
12561256
{
12571257
// Let any pending connect operation complete before disconnect - prevents destruction disconnect before connection is completed
12581258
if (!autoReconnecting)
1259+
{
1260+
m_connector.Cancel();
12591261
m_connectActionMutex.lock();
1262+
}
12601263

12611264
ErrorCode error;
12621265

@@ -1298,7 +1301,6 @@ void DataSubscriber::Disconnect(bool autoReconnecting)
12981301
}
12991302
else
13001303
{
1301-
m_connector.Cancel();
13021304
m_commandChannelService.stop();
13031305
}
13041306

0 commit comments

Comments
 (0)