mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 09:38:19 +08:00
problem pretest
This commit is contained in:
1 parent
dd5a212422
commit
554698189c
17 files changed
+127
-57
No files matched your search
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user