Skip to content

Commit 6c68d61

Browse files
committed
[core] Publish v0.1.5
- the code was correct before (revert part of 0.1.4)
1 parent 500055b commit 6c68d61

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

chuchi-core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "chuchi-core",
3-
"version": "0.1.4",
3+
"version": "0.1.5",
44
"author": "Sören Meier <info@soerenmeier.ch>",
55
"type": "module",
66
"scripts": {

chuchi-core/src/api/Stream.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ export default class Stream {
146146
this.errorListeners.trigger(e);
147147

148148
// As noted in the comment of the class we treat this event as
149-
// a close event if the connection was opened.
150-
if (this.connected) {
149+
// a close event if the connection was not opened.
150+
if (!this.connected) {
151151
// trigger the close event
152152
close();
153153
return;

0 commit comments

Comments
 (0)