Describe the bug
The initial state of the commandSocket works fine. However, after changing the command Listen Port grSim crashes after receiving new commands. (this issue happens most frequently in macOS )
To Reproduce
Steps to reproduce the behavior:
most frequently happens in macOS, rarely in ubuntu due to its memory management policy
- open both grSim and the client
- change command Listen Port from grSim
- connect to the new port from the client and send new commands.
- grSim will be terminated
Expected behavior
receive the commands from the new port and apply them.
Desktop
My opinion to fix the issue
add the following line in mainwindow.cpp -> reconnectCommandSocket function (before connecting signal and slot)
glwidget->ssl->commandSocket = commandSocket;
Describe the bug
The initial state of the commandSocket works fine. However, after changing the command Listen Port grSim crashes after receiving new commands. (this issue happens most frequently in macOS )
To Reproduce
Steps to reproduce the behavior:
most frequently happens in macOS, rarely in ubuntu due to its memory management policy
Expected behavior
receive the commands from the new port and apply them.
Desktop
My opinion to fix the issue
add the following line in
mainwindow.cpp->reconnectCommandSocketfunction (before connecting signal and slot)