Patchwork D3333: wireprotoframing: use value passed into function

login
register
mail settings
Submitter phabricator
Date April 13, 2018, 9:37 p.m.
Message ID <differential-rev-PHID-DREV-ih4aivkcvq5ehtqvntsj-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/30897/
State Superseded
Headers show

Comments

phabricator - April 13, 2018, 9:37 p.m.
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  Oops.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D3333

AFFECTED FILES
  mercurial/wireprotoframing.py

CHANGE DETAILS




To: indygreg, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/wireprotoframing.py b/mercurial/wireprotoframing.py
--- a/mercurial/wireprotoframing.py
+++ b/mercurial/wireprotoframing.py
@@ -464,7 +464,7 @@ 
 
     def __init__(self, streamid, active=False):
         self.streamid = streamid
-        self._active = False
+        self._active = active
 
     def makeframe(self, requestid, typeid, flags, payload):
         """Create a frame to be sent out over this stream.