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

dcf at torproject.org dcf at torproject.org
Mon Apr 9 04:08:42 UTC 2012


commit dfed38da17068239fc64965fa02b2aa591f6a646
Author: David Fifield <david at bamsoftware.com>
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);
         };
     }
 }





More information about the tor-commits mailing list