forked from cory/tildefriends
Kill tasks when their websocket closes. Sigh.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3779 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
@ -286,7 +286,7 @@ static JSValue _taskstub_getExports(JSContext* context, JSValueConst this_val, i
|
||||
tf_taskstub_t* stub = JS_GetOpaque(this_val, _classId);
|
||||
promiseid_t promise = -1;
|
||||
JSValue result = tf_task_allocate_promise(stub->_owner, &promise);
|
||||
tf_task_send_promise_message(stub->_owner, (tf_taskstub_t*)stub, kGetExports, promise, JS_UNDEFINED);
|
||||
tf_task_send_promise_message(stub->_owner, stub, kGetExports, promise, JS_UNDEFINED);
|
||||
return result;
|
||||
}
|
||||
|
||||
@ -369,7 +369,7 @@ static JSValue _taskstub_execute(JSContext* context, JSValueConst this_val, int
|
||||
tf_taskstub_t* stub = JS_GetOpaque(this_val, _classId);
|
||||
promiseid_t promise = -1;
|
||||
JSValue result = tf_task_allocate_promise(stub->_owner, &promise);
|
||||
tf_task_send_promise_message(stub->_owner, (tf_taskstub_t*)stub, kExecute, promise, argv[0]);
|
||||
tf_task_send_promise_message(stub->_owner, stub, kExecute, promise, argv[0]);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user