@ -25294,13 +25294,20 @@ var origCurve25519 = Internal.curve25519_async;
Internal . startWorker = function ( url ) {
Internal . startWorker = function ( url ) {
Internal . stopWorker ( ) ; // there can be only one
Internal . stopWorker ( ) ; // there can be only one
Internal . curve25519 _async = new Curve25519Worker ( url ) ;
Internal . curve25519 _async = new Curve25519Worker ( url ) ;
Internal . Curve . async = Internal . wrapCurve25519 ( Internal . curve25519 _async ) ;
libsignal . Curve . async = Internal . wrapCurve ( Internal . Curve . async ) ;
} ;
} ;
Internal . stopWorker = function ( ) {
Internal . stopWorker = function ( ) {
if ( Internal . curve25519 _async instanceof Curve25519Worker ) {
if ( Internal . curve25519 _async instanceof Curve25519Worker ) {
var worker = Internal . curve25519 _async . worker ;
var worker = Internal . curve25519 _async . worker ;
Internal . curve25519 _async = origCurve25519 ;
Internal . curve25519 _async = origCurve25519 ;
Internal . Curve . async = Internal . wrapCurve25519 ( Internal . curve25519 _async ) ;
libsignal . Curve . async = Internal . wrapCurve ( Internal . Curve . async ) ;
worker . terminate ( ) ;
worker . terminate ( ) ;
}
}
} ;
} ;
@ -35158,6 +35165,7 @@ Curve25519Worker.prototype = {
} ;
} ;
}
}
Internal . wrapCurve25519 = wrapCurve25519 ;
Internal . Curve = wrapCurve25519 ( Internal . curve25519 ) ;
Internal . Curve = wrapCurve25519 ( Internal . curve25519 ) ;
Internal . Curve . async = wrapCurve25519 ( Internal . curve25519 _async ) ;
Internal . Curve . async = wrapCurve25519 ( Internal . curve25519 _async ) ;
@ -35185,6 +35193,7 @@ Curve25519Worker.prototype = {
} ;
} ;
}
}
Internal . wrapCurve = wrapCurve ;
libsignal . Curve = wrapCurve ( Internal . Curve ) ;
libsignal . Curve = wrapCurve ( Internal . Curve ) ;
libsignal . Curve . async = wrapCurve ( Internal . Curve . async ) ;
libsignal . Curve . async = wrapCurve ( Internal . Curve . async ) ;