Skip to content

Commit 25faf64

Browse files
author
aponica-release
committed
renamed done to onResult
1 parent d065991 commit 25faf64

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/commands/quit.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const Packet = require('../packets/packet.js');
77
class Quit extends Command {
88
constructor(callback) {
99
super();
10-
this.done = callback;
10+
this.onResult = callback;
1111
}
1212

1313
start(packet, connection) {
@@ -18,8 +18,8 @@ class Quit extends Command {
1818
0,
1919
5
2020
);
21-
if (this.done) {
22-
this.done();
21+
if (this.onResult) {
22+
this.onResult();
2323
}
2424
connection.writePacket(quit);
2525
return null;

0 commit comments

Comments
 (0)