mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-12 07:59:48 +12:00
fix loggedin issue
This commit is contained in:
parent
8b373b9c22
commit
f35456385d
1 changed files with 15 additions and 1 deletions
|
@ -14,7 +14,21 @@ namespace HISP.Server
|
||||||
public Socket ClientSocket;
|
public Socket ClientSocket;
|
||||||
public string RemoteIp;
|
public string RemoteIp;
|
||||||
|
|
||||||
public bool LoggedIn = false;
|
private bool loggedIn = false;
|
||||||
|
public bool LoggedIn
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
bool login = loggedIn;
|
||||||
|
if (LoggedinUser == null)
|
||||||
|
login = false;
|
||||||
|
return login;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
loggedIn = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
public User LoggedinUser;
|
public User LoggedinUser;
|
||||||
|
|
||||||
private Thread recvPackets;
|
private Thread recvPackets;
|
||||||
|
|
Loading…
Add table
Reference in a new issue