Gracefully disconnect clients in wxDDEServer dtor.
Remove the SetConnected(false) call which prevented the connection from notifying the client about its destruction. Closes #12164. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64657 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
		| @@ -327,7 +327,6 @@ wxDDEServer::~wxDDEServer() | |||||||
|     { |     { | ||||||
|         wxDDEConnection *connection = node->GetData(); |         wxDDEConnection *connection = node->GetData(); | ||||||
|         wxDDEConnectionList::compatibility_iterator next = node->GetNext(); |         wxDDEConnectionList::compatibility_iterator next = node->GetNext(); | ||||||
|         connection->SetConnected(false); |  | ||||||
|         connection->OnDisconnect(); // May delete the node implicitly |         connection->OnDisconnect(); // May delete the node implicitly | ||||||
|         node = next; |         node = next; | ||||||
|     } |     } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user