mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-01 20:46:08 +00:00
fix: workerData is nullable
This commit is contained in:
parent
9f228259a2
commit
d72d6c0844
@ -76,7 +76,7 @@ export class Client<Ready extends boolean = boolean> extends BaseClient {
|
||||
parentPort = worker_threads.parentPort;
|
||||
}
|
||||
|
||||
if (!worker_threads?.workerData.__USING_WATCHER__) {
|
||||
if (!worker_threads?.workerData?.__USING_WATCHER__) {
|
||||
await this.gateway.spawnShards();
|
||||
} else {
|
||||
parentPort?.on('message', (data: WatcherPayload | WatcherSendToShard) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user