[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [flashproxy/js] Bind flush callback to this.



commit dfed38da17068239fc64965fa02b2aa591f6a646
Author: David Fifield <david@xxxxxxxxxxxxxxx>
Date:   Mon Apr 2 09:05:36 2012 -0700

    Bind flush callback to this.
---
 flashproxy.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/flashproxy.js b/flashproxy.js
index 3fcf4a0..167ec2c 100644
--- a/flashproxy.js
+++ b/flashproxy.js
@@ -538,7 +538,7 @@ function FlashProxy()
             }
 
             if (this.r2c_schedule.length > 0 || this.c2r_schedule.length > 0)
-                this.flush_timeout_id = setTimeout(this.flush, rate_limit.when() * 1000);
+                this.flush_timeout_id = setTimeout(this.flush.bind(this), rate_limit.when() * 1000);
         };
     }
 }



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits