ableton-js 3.2.9 → 3.2.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -4,8 +4,14 @@ All notable changes to this project will be documented in this file. Dates are d
4
4
 
5
5
  Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6
6
 
7
+ #### [v3.2.10](https://github.com/leolabs/ableton.js/compare/v3.2.9...v3.2.10)
8
+
9
+ - :sparkles: Remove the socket after closing it to avoid dangling event listeners trying to send messages after the plugin has been shut down [`54278f2`](https://github.com/leolabs/ableton.js/commit/54278f2b4ccb6efe34592fc108cd10c35e404e58)
10
+
7
11
  #### [v3.2.9](https://github.com/leolabs/ableton.js/compare/v3.2.8...v3.2.9)
8
12
 
13
+ > 14 July 2023
14
+
9
15
  - :sparkles: Only send the client port to Live once [`29e9443`](https://github.com/leolabs/ableton.js/commit/29e9443194294f5b55805df909d234b67e52eca2)
10
16
  - :sparkles: Send the current client port to Live every time the server port changes [`eb42ce3`](https://github.com/leolabs/ableton.js/commit/eb42ce32f4fa91bd57e4c026a7d29d961afa0a04)
11
17
 
@@ -93,6 +93,7 @@ class Socket(object):
93
93
  def shutdown(self):
94
94
  self.log_message("Shutting down...")
95
95
  self._socket.close()
96
+ self._socket = None
96
97
 
97
98
  def init_socket(self, try_stored=False):
98
99
  self.log_message(
@@ -150,6 +151,9 @@ class Socket(object):
150
151
  # https://stackoverflow.com/questions/22819214/udp-message-too-long
151
152
  limit = 7500
152
153
 
154
+ if self._socket == None:
155
+ return
156
+
153
157
  if len(compressed) < limit:
154
158
  self._socket.sendto(b'\xFF' + compressed, self._client_addr)
155
159
  else:
@@ -1 +1 @@
1
- version = "3.2.9"
1
+ version = "3.2.10"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ableton-js",
3
- "version": "3.2.9",
3
+ "version": "3.2.10",
4
4
  "description": "Control Ableton Live from Node",
5
5
  "main": "index.js",
6
6
  "author": "Leo Bernard <admin@leolabs.org>",