File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
src/packages/frontend/frame-editors/terminal-editor Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -154,14 +154,19 @@ export class NatsTerminalConnection extends EventEmitter {
154
154
}
155
155
} ;
156
156
157
- close = ( ) => {
157
+ close = async ( ) => {
158
158
webapp_client . nats_client . removeListener ( "connected" , this . clearWriteQueue ) ;
159
159
this . stream ?. close ( ) ;
160
160
delete this . stream ;
161
161
this . service ?. close ( ) ;
162
162
delete this . service ;
163
- this . api . close ( webapp_client . browser_id ) ;
164
163
this . setState ( "closed" ) ;
164
+ try {
165
+ await this . api . close ( webapp_client . browser_id ) ;
166
+ } catch {
167
+ // we did our best to quickly tell that we're closed, but if it times out or fails,
168
+ // it is the responsibility of the project to stop worrying about this browser.
169
+ }
165
170
} ;
166
171
167
172
end = ( ) => {
You can’t perform that action at this time.
0 commit comments