summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-11-02 13:20:32 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-11-02 13:20:32 +0100
commitcd0a7387218ba3f5b26a3cba02e686f00134b930 (patch)
treeb78ce5cfa826830f0a5a455c730fb822a6e7485b /src
parent85917b95639bf56cac266e2ec572b071ddabfd24 (diff)
downloadlibrda-cd0a7387218ba3f5b26a3cba02e686f00134b930.tar.gz
librda-cd0a7387218ba3f5b26a3cba02e686f00134b930.tar.bz2
librda-cd0a7387218ba3f5b26a3cba02e686f00134b930.zip
src/rda.c: Don't fail if no remote technology is enabled at configure time.
Diffstat (limited to 'src')
-rw-r--r--src/rda.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/rda.c b/src/rda.c
index 855a7cc..7d714e6 100644
--- a/src/rda.c
+++ b/src/rda.c
@@ -57,21 +57,20 @@ gboolean
rda_session_is_remote (void)
{
+ if (rda_session_is_local())
+ remote_technology = REMOTE_TECHNOLOGY_NONE;
#ifdef WITH_X2GO_AWARENESS
- if (rda_session_is_x2go())
+ else if (rda_session_is_x2go())
return TRUE;
#endif
#ifdef WITH_OGON_AWARENESS
- if (rda_session_is_ogon())
+ else if (rda_session_is_ogon())
return TRUE;
#endif
/* possibly add more checks for other remote desktop technologies */
- else if (rda_session_is_local())
- remote_technology = REMOTE_TECHNOLOGY_NONE;
-
else
remote_technology = REMOTE_TECHNOLOGY_UNKNOWN;