Repository navigation
Commit 36e33d8
committed
fix: handle WebSocket ping errors and DCC peer logging with None
send_ping could leak unretrieved exceptions if the websocket closed
between the closed check and the ping call; catch and exit cleanly.
DCCProtocol.connection_made used %d for peerport, which crashed when
the peer info was not available. Use %s to log safely.1 parent b609412 commit 36e33d8
2 files changed
Lines changed: 10 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
527 | 527 | | |
528 | 528 | | |
529 | 529 | | |
530 | | - | |
531 | | - | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
532 | 539 | | |
533 | | - | |
534 | 540 | | |
535 | 541 | | |
536 | 542 | | |
| |||
0 commit comments