summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-01-30 20:05:07 +1100
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-01-30 20:05:07 +1100
commitac51849f2845fcad51b5c22ec27bb7298eb24bb4 (patch)
tree60298eeb2d7d1dbb48dc8b19e670a543b39ecf14 /src
parentImpl member lazy request (#970) (diff)
downloadserver-ac51849f2845fcad51b5c22ec27bb7298eb24bb4.tar.xz
question mark.
Diffstat (limited to 'src')
-rw-r--r--src/gateway/opcodes/LazyRequest.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gateway/opcodes/LazyRequest.ts b/src/gateway/opcodes/LazyRequest.ts
index c21a6d52..ce0bb915 100644
--- a/src/gateway/opcodes/LazyRequest.ts
+++ b/src/gateway/opcodes/LazyRequest.ts
@@ -213,7 +213,7 @@ export async function onLazyRequest(this: WebSocket, { d }: Payload) {
 				const session = getMostRelevantSession(sessions);
 				// eslint-disable-next-line @typescript-eslint/ban-ts-comment
 				// @ts-ignore
-				if (session.status == "unknown") session.status = "online";
+				if (session?.status == "unknown") session.status = "online";
 				const user = (await User.getPublicUser(x)).toPublicUser(); // why is this needed?
 
 				return Send(this, {