Subscriber: proper destruction, tests for that, tests for getFailureCount()

This commit is contained in:
Pavel Kirienko
2014-03-09 19:37:07 +04:00
parent 31e169db4a
commit 1b7efa45f5
2 changed files with 75 additions and 0 deletions
+2
View File
@@ -119,6 +119,8 @@ public:
StaticAssert<DataTypeKind(DataType::DataTypeKind) == DataTypeKindMessage>::check();
}
virtual ~Subscriber() { stop(); }
int start(Callback callback)
{
stop();