problem pretest

This commit is contained in:
undefined committed 2020-06-28 13:05:40 +08:00
1 parent dd5a212422
commit 554698189c
17 files changed
+127 -57

No files matched your search

+2 -2
View File
@@ -224,7 +224,7 @@ class ProblemPretestConnectionHandler extends ConnectionHandler {
async prepare({ domainId, pid }) {
this.pid = pid.toString();
this.domainId = domainId;
bus.subscribe(['record_change'], this.onRecordChange);
bus.subscribe(['record_change'], this, 'onRecordChange');
}
async onRecordChange(data) {
@@ -239,7 +239,7 @@ class ProblemPretestConnectionHandler extends ConnectionHandler {
}
async cleanup() {
bus.unsubscribe(['record_change'], this.onRecordChange);
bus.unsubscribe(['record_change'], this, 'onRecordChange');
}
}