Skip to content

WebSocketServer lingers on update #115

@Sidiousious

Description

@Sidiousious

When the plugin is updated, the previous websocket server continues running on the configured port. The new version on init prints error as the port is already occupied:

15:14:36.544 | ERR | [IINACT] [OverlayPlugin] WS: Failed to start: System.Net.Sockets.SocketException (10013): Access denied.
	   at System.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException(SocketError error, Boolean disconnectOnFailure, String callerName)
	   at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
	   at System.Net.Sockets.Socket.Bind(EndPoint localEP)
	   at NetCoreServer.TcpServer.Start()
	   at RainbowMage.OverlayPlugin.WebSocket.ServerController.Start() in /home/runner/work/IINACT/IINACT/OverlayPlugin.Core/WebSocket/ServerController.cs:line 75

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions