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
parent
f52cf4be70
commit
e98438bda7
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue