Allow ping requests before initialization (#1312)
This commit is contained in:
parent
346e794d59
commit
47d35f0b3c
1 changed files with 129 additions and 0 deletions
|
|
@ -161,6 +161,9 @@ class ServerSession(
|
|||
)
|
||||
)
|
||||
)
|
||||
case types.PingRequest():
|
||||
# Ping requests are allowed at any time
|
||||
pass
|
||||
case _:
|
||||
if self._initialization_state != InitializationState.Initialized:
|
||||
raise RuntimeError("Received request before initialization was complete")
|
||||
|
|
|
|||
Loading…
Reference in a new issue