Avoid crash when subscribeToChannel is fed with invaled channel id

Fix a couple compiler warning too
This commit is contained in:
Gioacchino Mazzurco 2019-09-27 16:21:08 +02:00
parent ce3e2a2c9d
commit 3b8f6997bb
No known key found for this signature in database
GPG key ID: A1FBCA3872E87051
5 changed files with 42 additions and 37 deletions

View file

@ -101,7 +101,6 @@ class RsGxsChannels: public RsGxsIfaceHelper, public RsGxsCommentService
{
public:
explicit RsGxsChannels(RsGxsIface& gxs) : RsGxsIfaceHelper(gxs) {}
virtual ~RsGxsChannels() {}
/**
* @brief Create channel. Blocking API.
@ -544,4 +543,6 @@ public:
RS_DEPRECATED_FOR(turtleChannelRequest)
virtual bool retrieveDistantGroup(const RsGxsGroupId& group_id,RsGxsChannelGroup& distant_group)=0;
//////////////////////////////////////////////////////////////////////////////
virtual ~RsGxsChannels();
};