You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: don't delete project info on initial sync fail (#1055)
* fix: don't delete project info on initial sync fail
* fix: invitee should set deviceInfo
* chore: remove dead code
* fix: Add timeout to inviter initial sync
* chore: clean up try catch for setting up project on invitee
* chore: run formatter
* chore: Change name / approach for initial sync timeout
* fix force close of peer connections
The previous behaviour when stopping LocalDiscovery server with force: true (which is used in tests to disconnect peers) was to disconnect after a timeout of 1ms. This was causing a race condition in this test https://github.com/digidem/comapeo-core/blob/f7e59063deb32fef129eb2a6a06ec9ac8b28e4c3/test-e2e/manager-invite.js#L668 because the timers were being run before abort signals had been created. On my macbook this test was failing randomly about 75% of the time.
This change results in calling localDiscovery.stop({ force: true }) immediately disconnecting sockets in the same tick.
* fix: catch disconnect errors for tests
---------
Co-authored-by: Mauve Signweaver <[email protected]>
Co-authored-by: Gregor MacLennan <[email protected]>
0 commit comments