# Clean up WebRTC before submitting a new offer

**URL:** <https://react-native-webrtc.discourse.group/t/clean-up-webrtc-before-submitting-a-new-offer/888>\
**Category:** Uncategorized\
**Created:** [August 2, 2020, 7:14pm UTC](https://react-native-webrtc.discourse.group/t/clean-up-webrtc-before-submitting-a-new-offer/888 "2020-08-02T19:14:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![GuillaumeA07](https://avatars.discourse-cdn.com/v4/letter/g/f0a364/32.png) [@GuillaumeA07](https://react-native-webrtc.discourse.group/u/GuillaumeA07)\
**Post date:** [August 2, 2020, 7:14pm UTC](https://react-native-webrtc.discourse.group/t/clean-up-webrtc-before-submitting-a-new-offer/888/1 "2020-08-02T19:14:26Z")

</div>

I want to send a second sdp offer after one of the two peer has disconnected. But the second offer generated appears to be a light version (half the number of line of the first offer) and therefore no answer sdp could be generated from the second peer. Is there a way to clean up webrtc after disconnect to allow submission of a second offer?

Thanks for your help

---

<div class="post-metadata">

**Author:** ![GuillaumeA07](https://avatars.discourse-cdn.com/v4/letter/g/f0a364/32.png) [@GuillaumeA07](https://react-native-webrtc.discourse.group/u/GuillaumeA07)\
**Post date:** [August 4, 2020, 6:01pm UTC](https://react-native-webrtc.discourse.group/t/clean-up-webrtc-before-submitting-a-new-offer/888/2 "2020-08-04T18:01:29Z")

</div>

Problem solved. Got an answer on github
