Skip to content

Commit

Permalink
tracer fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yury-s committed Mar 15, 2021
1 parent 5431626 commit 3026c51
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/server/frames.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import { assert, createGuid, makeWaitForNextTask } from '../utils/utils';
import { debugLogger } from '../utils/debugLogger';
import { CallMetadata, SdkObject } from './instrumentation';
import { ElementStateWithoutStable } from './injected/injectedScript';
import { readSync } from 'fs';

type ContextData = {
contextPromise: Promise<dom.FrameExecutionContext>;
Expand Down
2 changes: 1 addition & 1 deletion src/server/trace/recorder/tracer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ class ContextTracer {
async dispose() {
this._disposed = true;
helper.removeEventListeners(this._eventListeners);
void this._snapshotter.dispose();
await this._snapshotter.dispose();
const event: trace.ContextDestroyedTraceEvent = {
timestamp: monotonicTime(),
type: 'context-destroyed',
Expand Down

0 comments on commit 3026c51

Please sign in to comment.