Bug 1086434 - Having multiple outgoing Loop windows in an end call state could result in being unable to received another call. r=dmose, a=lmandel
authorMark Banner <standard8@mozilla.com>
Tue, 28 Oct 2014 21:09:34 +0000
changeset 225859 a7a6e6465c30
parent 225858 ea93efd4cf0a
child 225860 79567465c505
push id4041
push userryanvm@gmail.com
push date2014-10-29 18:20 +0000
treeherdermozilla-beta@79567465c505 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdmose, lmandel
bugs1086434
milestone34.0
Bug 1086434 - Having multiple outgoing Loop windows in an end call state could result in being unable to received another call. r=dmose, a=lmandel Temporarily make the random number a big number whilst we fix the issue elsewhere.
browser/components/loop/MozLoopService.jsm
--- a/browser/components/loop/MozLoopService.jsm
+++ b/browser/components/loop/MozLoopService.jsm
@@ -842,17 +842,18 @@ let MozLoopServiceInternal = {
    */
   startDirectCall: function(contact, callType) {
     if (this.callsData.inUse)
       return false;
 
     var callData = {
       contact: contact,
       callType: callType,
-      callId: Math.floor((Math.random() * 10))
+      // XXX Really we shouldn't be using random numbers, bug 1090209 will fix this.
+      callId: Math.floor((Math.random() * 100000000))
     };
 
     this._startCall(callData, "outgoing");
     return true;
   },
 
    /**
    * Open call progress websocket and terminate with a reason of busy