-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
fix: Prevent closing the portal twice #2120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Not sure this is the right way to fix this (might be better to check in |
ah dang - w/ the race condition situation I'm guessing there's no good way to write a test for this? |
Not sure indeed. Maybe we can find a way to force a call to close() right after we get a first row (e.g. by monkey matching the listener?), and then wait for the complete command listener to kick in. I am not too familiar with this lib's internals so I don't feel too confortable fixing it myself. |
Hey @brianc did you get time to look into this ? |
Yeah I spent some time this morning looking at this, trying to force the error to happen...I am not able to simulate the race condition here. I'm definitely down w/ you giving it a shot through any level of monkey patching you think would accurately recreate it. If you can't, I can just merge this as it the behavior itself makes sense...though I do think moving Sorry for the delay. Thoughts? |
I guess you could monkey patch by adding a I made the suggested change though I am not sure about calling |
Hey @brianc did you get time to look into this ? |
Hey sorry for the delay! I was out on vacation & just getting back...I'll take a look at this tomorrow! ❤️ |
closing in favor of #2609 |
Fixes #2119