Skip to content

Commit f544daf

Browse files
committed
fix: quit command hanging
1 parent a1608a6 commit f544daf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/examples/client/simpleOAuthClient.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,9 @@ class InteractiveOAuthClient {
270270
}
271271

272272
if (command === 'quit') {
273-
break;
273+
console.log('\n👋 Goodbye!');
274+
this.close();
275+
process.exit(0);
274276
} else if (command === 'list') {
275277
await this.listTools();
276278
} else if (command.startsWith('call ')) {

0 commit comments

Comments
 (0)