Hello, everyone, i encountered a problem about using Consumer::unregister function. My application collected every returned handler returned from Consumer::registerClient( const ReqMsg& reqMsg, OmmConsumerClient& client, void* closure = 0, UInt64 parentHandle = 0 ) into a vector. Before my application quits, I iterate the vector , for each handler I called Consumer::unregister function, but the following errors occurs:
loggerMsg TimeStamp: 19:00:01.387 ClientName: Consumer_1_1 Severity: Error Text: Invalid attempt to close batch stream. Instance name='Consumer_1_1'. loggerMsgEnd
so Is there anything wrong about my calling Consumer::unregister() function? What's the correct way ?
One more question, if my application continues calling Consumer::register() to refresh each chain code, but never calling Consumer::unregister(), Is that still ok?
Appreciate for any help one may provide, thank you.