From 8b69ef786eb8a6807438404f2131423c2480e215 Mon Sep 17 00:00:00 2001 From: Pete Shadbolt Date: Tue, 30 Aug 2016 11:50:11 +0100 Subject: [PATCH] Don't update fancy.GraphState on close. Fixes #8, "Allow control over which `GraphState` operations are depicted by server". Enables use of multiple visualized GraphStates in the same program. Downside -- you have to call `update()` at the end of your program. --- abp/fancy.py | 1 - 1 file changed, 1 deletion(-) diff --git a/abp/fancy.py b/abp/fancy.py index 9472e9c..8ec95db 100644 --- a/abp/fancy.py +++ b/abp/fancy.py @@ -25,7 +25,6 @@ class GraphState(graphstate.GraphState, nx.Graph): """ Close the connection to the websocket """ if not self.ws: return - self.update() self.ws.close() def update(self, delay = 0.5):