From 944c1b0771ea6d7c104b4dbcc7f64399d97a06d6 Mon Sep 17 00:00:00 2001 From: lukeIam Date: Sat, 26 Oct 2013 11:29:39 +0200 Subject: [PATCH] Webserver: some fixes --- ClientServerLib/ClientServerLib/CWebservice.cs | 4 ++-- Vocaluxe/Base/Server/CVocaluxeServer.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ClientServerLib/ClientServerLib/CWebservice.cs b/ClientServerLib/ClientServerLib/CWebservice.cs index 6b54e961..5e3db8cb 100644 --- a/ClientServerLib/ClientServerLib/CWebservice.cs +++ b/ClientServerLib/ClientServerLib/CWebservice.cs @@ -259,8 +259,6 @@ namespace ServerLib return; } - CServer.SendProfileData(profile); - if (!string.IsNullOrEmpty(profile.Password)) { int profileId = profile.ProfileId; @@ -271,6 +269,8 @@ namespace ServerLib CServer.SetPassword(profileId, profile.Password); } + + CServer.SendProfileData(profile); } public SProfileData GetProfile(int profileId) diff --git a/Vocaluxe/Base/Server/CVocaluxeServer.cs b/Vocaluxe/Base/Server/CVocaluxeServer.cs index 45340056..645075db 100644 --- a/Vocaluxe/Base/Server/CVocaluxeServer.cs +++ b/Vocaluxe/Base/Server/CVocaluxeServer.cs @@ -85,7 +85,7 @@ namespace Vocaluxe.Base.Server private static bool _SendKeyEvent(string key) { bool result = false; - if (key != null && key != "") + if (!string.IsNullOrEmpty(key)) { switch (key.ToLower()) {