Fix subtle bug in ReadPipeImpl: wouldn't tolerate multiple instances.

That is, trying to instantiate a ReadPipeImpl while another already existed
would throw an LLEventPump::DupPumpName exception. Fortunately this behavior
is easily bypassed.
meow-7.2.2
Nat Goodspeed 2012-02-18 12:00:13 -05:00
parent f52cf4be70
commit e98438bda7
1 changed files with 1 additions and 1 deletions

View File

@ -209,7 +209,7 @@ public:
mPipe(pipe),
// Essential to initialize our std::istream with our special streambuf!
mStream(&mStreambuf),
mPump("ReadPipe"),
mPump("ReadPipe", true), // tweak name as needed to avoid collisions
// use funky syntax to call max() to avoid blighted max() macros
mLimit(npos)
{