|
@@ -261,7 +261,6 @@ const killThread = thread => { |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
const sendMessageToThread = ({ threadId, msg }) => { |
|
|
const sendMessageToThread = ({ threadId, msg }) => { |
|
|
console.log('ok'); |
|
|
|
|
|
const thread = threads.find(t => t.id === threadId); |
|
|
const thread = threads.find(t => t.id === threadId); |
|
|
if (thread) |
|
|
if (thread) |
|
|
thread.worker.send(msg); |
|
|
thread.worker.send(msg); |
|
|