Changeset 126:6290414eba7e in finroc_plugins_tcp-java


Ignore:
Timestamp:
29.07.2019 17:59:06 (3 weeks ago)
Author:
Max Reichardt <max.reichardt@…>
Branch:
default
Phase:
public
Rebase:
33613631303862363132326630313763393132653839313834393762393862313764333436636537
Message:

Removes connection root model element on disconnects - to avoid that elements accumulate on (auto-)reconnect

File:
1 edited

Legend:

Unmodified
Added
Removed
  • internal/TCPPeer.java

    r125 r126  
    368368        } 
    369369        otherPeers.clear(); 
     370 
     371        if (modelRootNode != null) { 
     372            BufferedModelChanges changes = new BufferedModelChanges(); 
     373            changes.removeNode(modelRootNode); 
     374            connectionElement.getModelHandler().applyModelChanges(changes); 
     375        } 
     376        modelRootNode = null; 
    370377    } 
    371378 
Note: See TracChangeset for help on using the changeset viewer.