Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[lib] Add timeout to useWaitForConnection() hook
Summary: As per discussion here: https://phab.comm.dev/D14167 added a timeout when waiting for connection. If timeout is hit, an error is thrown. Depends on D14167 Test Plan: 1. Have mobile and web clients that do not know each other 2. Put a sleep() call before connecting to tunnelbroker socket (for example 20s) 3. Close web client 4. Send a DM on mobile to web. Make sure it's sent (checkmark) 5. Open web client 6. Quickly (before sleep from step 2 ends) add mobile to friends (with Settings -> friends -> add friends) If we do it quickly enough the 5s timeout should trigger. Reviewers: tomek, kamil Reviewed By: tomek Subscribers: ashoat Differential Revision: https://phab.comm.dev/D14184
- Loading branch information