From f2c73bd845c2f07c4194f438ef4ce8bbe249bf40 Mon Sep 17 00:00:00 2001 From: Vadim Troshchinskiy Date: Tue, 10 Oct 2017 13:04:08 +0200 Subject: Fix bug #525: PANIC! No port specified for multimedia connections Commit 5f1eb0dc3eb89e84a3b146975e147b995fb7673f introduced a regression that made the use of the multimedia port mandatory. Fixes ArcticaProject/nx-libs#525 --- nxcomp/src/ChannelEndPoint.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'nxcomp/src/ChannelEndPoint.cpp') diff --git a/nxcomp/src/ChannelEndPoint.cpp b/nxcomp/src/ChannelEndPoint.cpp index 78902399c..4fdf0fad4 100644 --- a/nxcomp/src/ChannelEndPoint.cpp +++ b/nxcomp/src/ChannelEndPoint.cpp @@ -311,6 +311,11 @@ ChannelEndPoint::enabled() const { return (isUnixSocket() || isTCPSocket()); } +bool +ChannelEndPoint::configured() const { + return ( spec_ && ( strcmp(spec_, "0") != 0) ); +} + bool ChannelEndPoint::validateSpec() { isTCP_ = getTCPHostAndPort(); -- cgit v1.2.3