Commit ddd97ea4 authored by Sunny's avatar Sunny Committed by Sunny Sun

fix a segfault when switching VT

add a check before calling AttendClient/IgnoreClient

Change-Id: Iea22d8c31d08a886790e0f7717e9b24375038b52
parent 08e6cc77
......@@ -1343,7 +1343,7 @@ ARMSOCEnterVT(VT_FUNC_ARGS_DECL)
TRACE_ENTER();
for (i = 1; i < currentMaxClients; i++) {
if (clients[i])
if (clients[i] && !clients[i]->clientGone)
AttendClient(clients[i]);
}
......@@ -1378,7 +1378,7 @@ ARMSOCLeaveVT(VT_FUNC_ARGS_DECL)
TRACE_ENTER();
for (i = 1; i < currentMaxClients; i++) {
if (clients[i])
if (clients[i] && !clients[i]->clientGone)
IgnoreClient(clients[i]);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment