Skip to content

Commit 72d3a10

Browse files
fix(debug): align TSR prepare hook signature
1 parent 7a04133 commit 72d3a10

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • shared/packages/tsr-bridge/src

shared/packages/tsr-bridge/src/TSR.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,15 +154,15 @@ export class TSR {
154154
if (newDeviceOptions.type === DeviceType.CASPARCG) {
155155
const originalPrepare = device.device.prepareForHandleState?.bind(device.device)
156156
if (originalPrepare) {
157-
device.device.prepareForHandleState = async (newStateTime: number, ...args: any[]) => {
157+
device.device.prepareForHandleState = async (newStateTime: number) => {
158158
const now = this.getCurrentTime()
159159
this.log.info('TSR resync prepare', {
160160
deviceId,
161161
newStateTime,
162162
now,
163163
diff: newStateTime - now,
164164
})
165-
return originalPrepare(newStateTime, ...args)
165+
return originalPrepare(newStateTime)
166166
}
167167
}
168168

0 commit comments

Comments
 (0)