forked from cory/tildefriends
async fix.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3378 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
parent
c1b75821bf
commit
5200fbc852
@ -153,10 +153,10 @@ function postMessageInternal(from, to, message) {
|
|||||||
return invoke(to.eventHandlers['onMessage'], [getUser(from, from), message]);
|
return invoke(to.eventHandlers['onMessage'], [getUser(from, from), message]);
|
||||||
}
|
}
|
||||||
|
|
||||||
function getService(service, packageName) {
|
async function getService(service, packageName) {
|
||||||
let process = this;
|
let process = this;
|
||||||
let serviceName = process.packageName + '_' + service;
|
let serviceName = process.packageName + '_' + service;
|
||||||
let serviceProcess = getServiceProcess(process.packageOwner, packageName || process.packageName, serviceName);
|
let serviceProcess = await getServiceProcess(process.packageOwner, packageName || process.packageName, serviceName);
|
||||||
return serviceProcess.ready.then(function() {
|
return serviceProcess.ready.then(function() {
|
||||||
return {
|
return {
|
||||||
postMessage: postMessageInternal.bind(process, process, serviceProcess),
|
postMessage: postMessageInternal.bind(process, process, serviceProcess),
|
||||||
|
Loading…
Reference in New Issue
Block a user