media: fix early stream->writable_cb emission
commitecb762a8d01f618c3353533acfe0ab174fca3816
authorJakub Adam <jakub.adam@ktknet.cz>
Tue, 8 Sep 2015 07:21:05 +0000 (8 09:21 +0200)
committerJakub Adam <jakub.adam@ktknet.cz>
Mon, 28 Nov 2016 18:10:19 +0000 (28 19:10 +0100)
tree3c4155fb698dd3b8710f17845dc7abff7cf2b22f
parent5a680fb4ad98dbd6ca9ee7311bad454d22b32388
media: fix early stream->writable_cb emission

Stream shouldn't become writable before the media negotiation via SDP
messages has fully concluded.

This commit fixes random connection failure on incoming application
sharing where we launched the RDP client before sending our last INVITE
response. The client sent the first RDP packet, but we never got any
reply because the remote server wasn't listening yet.
src/core/sipe-media.c