Skip to content

Commit efbcb17

Browse files
authored
Remove unreachable code from 2.0.1 CSMS example. (#561)
1 parent 84cb2f2 commit efbcb17

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

examples/v201/central_system.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ async def on_connect(websocket, path):
4242
try:
4343
requested_protocols = websocket.request_headers["Sec-WebSocket-Protocol"]
4444
except KeyError:
45-
logging.info("Client hasn't requested any Subprotocol. " "Closing Connection")
46-
return await websocket.close()
4745
logging.error("Client hasn't requested any Subprotocol. Closing Connection")
4846
return await websocket.close()
4947
if websocket.subprotocol:

0 commit comments

Comments
 (0)