Changeset - c070f46c0761
[Not reviewed]
default
0 1 0
drewp@bigasterisk.com - 20 months ago 2023-05-30 07:59:20
drewp@bigasterisk.com
you can ask to apply empty patch and it will no-op
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
light9/web/SyncedGraph.ts
Show inline comments
 
@@ -156,13 +156,13 @@ export class SyncedGraph {
 
      log("not connected-- dropping patch");
 
      return;
 
    }
 
    if (patch.isEmpty()) throw "should not get to this point with empty patch";
 

	
 
    if (!patch.isEmpty()) {
 
    this._applyPatch(patch);
 
    if (this.client) {
 
      log("sending patch:\n", patch.dump());
 
      this.client.sendPatch(patch);
 
    }
 
    }
 
    console.timeEnd("applyAndSendPatch");
 
  }
 

	
0 comments (0 inline, 0 general)