diff --git a/library/libsds.nim b/library/libsds.nim index e3e5d28..53d2a4e 100644 --- a/library/libsds.nim +++ b/library/libsds.nim @@ -233,6 +233,11 @@ proc SdsWrapOutgoingMessage( callback(RET_ERR, unsafeAddr msg[0], cast[csize_t](len(msg)), userData) return RET_ERR + if channelId != nil and $channelId == "": + let msg = "libsds error: " & "channel ID is empty string" + callback(RET_ERR, unsafeAddr msg[0], cast[csize_t](len(msg)), userData) + return RET_ERR + handleRequest( ctx, RequestType.MESSAGE, @@ -289,6 +294,11 @@ proc SdsMarkDependenciesMet( callback(RET_ERR, unsafeAddr msg[0], cast[csize_t](len(msg)), userData) return RET_ERR + if channelId != nil and $channelId == "": + let msg = "libsds error: " & "channel ID is empty string" + callback(RET_ERR, unsafeAddr msg[0], cast[csize_t](len(msg)), userData) + return RET_ERR + handleRequest( ctx, RequestType.DEPENDENCIES,