Bug 475430

Summary: Korrent shows error about "Unable to accept connections" after logging out and back into Plasma desktop.
Product: [Applications] ktorrent Reporter: dans64
Component: generalAssignee: Joris Guisson <joris.guisson>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 23.08.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: KTorrent error message

Description dans64 2023-10-10 14:33:32 UTC
Created attachment 162187 [details]
KTorrent error message

SUMMARY
When KTorrent is open and ports are manually forwarded in your router, logging out and back into plasma and starting KTorrent will show an error saying 'KTorrent is unable to accept connections because the TCP port (port number here) is already in use by another program.' This is not shown if KTorrent is opened at a fresh boot-up.


STEPS TO REPRODUCE
1. Forward the desired port for KTorrent in your router.
2. Open KTorrent
3. Log out of Plasma desktop
4. Log back into the same user that had KTorrent open
5. Open KTorrent and observe the error.


OBSERVED RESULT
KTorrent shows a error about the port being in use

EXPECTED RESULT
No error message should be shown(?)

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux
KDE Plasma Version: 5.27.8
KDE Frameworks Version: 5.110
Qt Version: 5.15.11

ADDITIONAL INFORMATION
Torrent still seed and download like normal, but the error message is annoying.