Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sjhbuild/modulesets/patches/libjingle_send_assert.patch
diff options
context:
space:
mode:
Diffstat (limited to 'sjhbuild/modulesets/patches/libjingle_send_assert.patch')
-rw-r--r--sjhbuild/modulesets/patches/libjingle_send_assert.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/sjhbuild/modulesets/patches/libjingle_send_assert.patch b/sjhbuild/modulesets/patches/libjingle_send_assert.patch
new file mode 100644
index 0000000..9d3a7d3
--- /dev/null
+++ b/sjhbuild/modulesets/patches/libjingle_send_assert.patch
@@ -0,0 +1,17 @@
+diff -Nur libjingle0.3-0.3.11/talk/p2p/base/p2psocket.cc libjingle0.3-0.3.11.new/talk/p2p/base/p2psocket.cc
+--- libjingle0.3-0.3.11/talk/p2p/base/p2psocket.cc 2007-04-25 16:45:58.000000000 +0100
++++ libjingle0.3-0.3.11.new/talk/p2p/base/p2psocket.cc 2007-05-01 16:53:55.000000000 +0100
+@@ -477,8 +477,12 @@
+ }
+ int sent = best_connection_->Send(data, len);
+ if (sent <= 0) {
+- assert(sent < 0);
+ error_ = best_connection_->GetError();
++
++ if (error_ == EWOULDBLOCK) {
++ // This means the best_connection_ is not writable, let's resort
++ RequestSort();
++ }
+ }
+ return sent;
+ }