Webserver: some fixes

This commit is contained in:
lukeIam committed 2013-12-13 17:43:29 +01:00
1 parent bfd8672d69
commit 944c1b0771
2 files changed
+3 -3

No files matched your search

@@ -259,8 +259,6 @@ namespace ServerLib
return; return;
} }
CServer.SendProfileData(profile);
if (!string.IsNullOrEmpty(profile.Password)) if (!string.IsNullOrEmpty(profile.Password))
{ {
int profileId = profile.ProfileId; int profileId = profile.ProfileId;
@@ -271,6 +269,8 @@ namespace ServerLib
CServer.SetPassword(profileId, profile.Password); CServer.SetPassword(profileId, profile.Password);
} }
CServer.SendProfileData(profile);
} }
public SProfileData GetProfile(int profileId) public SProfileData GetProfile(int profileId)
+1 -1
View File
@@ -85,7 +85,7 @@ namespace Vocaluxe.Base.Server
private static bool _SendKeyEvent(string key) private static bool _SendKeyEvent(string key)
{ {
bool result = false; bool result = false;
if (key != null && key != "") if (!string.IsNullOrEmpty(key))
{ {
switch (key.ToLower()) switch (key.ToLower())
{ {