Fixed incorrect memory access issues. (#109)

This commit is contained in:
Ravin Perera
2020-08-20 15:20:11 +05:30
committed by GitHub
parent eb70d9f308
commit baf5d8b14a
17 changed files with 192 additions and 147 deletions

View File

@@ -32,14 +32,14 @@ async function main() {
// Establish HotPocket connection.
if (!await hpc.connect()) {
console.log('Connection failed.');
exit;
exit();
}
console.log('HotPocket Connected.');
// This will get fired if HP server disconnects unexpectedly.
hpc.on(HotPocketEvents.disconnect, () => {
console.log('Server diconnected');
exit;
console.log('Server disconnected');
exit();
})
// This will get fired when contract sends an output.