commit 7090316e5c3a780dbf877fab6e5339534b3f5377 Author: Arlo Breault arlolra@gmail.com Date: Sat Jun 29 20:19:51 2019 -0400
getClientOffer can return after snowflake is disabled --- proxy/snowflake.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/proxy/snowflake.coffee b/proxy/snowflake.coffee index d2fdf91..d54f593 100644 --- a/proxy/snowflake.coffee +++ b/proxy/snowflake.coffee @@ -72,7 +72,7 @@ class Snowflake @ui.setStatus msg recv = @broker.getClientOffer pair.id recv.then (desc) => - @receiveOffer pair, desc + if pair.running then @receiveOffer pair, desc , (err) -> pair.active = false @retries++