Skip to content

Commit

Permalink
Update source/handy_httpd/components/websocket/manager.d
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewlalis committed Sep 27, 2024
1 parent 6210410 commit e1e7dd0
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions source/handy_httpd/components/websocket/manager.d
Original file line number Diff line number Diff line change
Expand Up @@ -199,13 +199,11 @@ class WebSocketManager : Thread {
conn.id,
(){
import std.socket : SocketOSException;
string address = "unkown";
try {
address = conn.getSocket().remoteAddress().toString;
return conn.getSocket().remoteAddress().toString;
} catch(SocketOSException e) {
return "unknown";
}
catch(SocketOSException e) {
}
return address;
}(),
frame.opcode,
frame.payload.length
Expand Down

0 comments on commit e1e7dd0

Please sign in to comment.