From 5200fbc852c73df14a1f9ac6b66f671b15310723 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Fri, 13 Jan 2017 01:15:02 +0000 Subject: [PATCH] async fix. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3378 ed5197a5-7fde-0310-b194-c3ffbd925b24 --- core/core.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/core.js b/core/core.js index d163630d..7942538b 100644 --- a/core/core.js +++ b/core/core.js @@ -153,10 +153,10 @@ function postMessageInternal(from, to, message) { return invoke(to.eventHandlers['onMessage'], [getUser(from, from), message]); } -function getService(service, packageName) { +async function getService(service, packageName) { let process = this; 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 { postMessage: postMessageInternal.bind(process, process, serviceProcess),