File tree Expand file tree Collapse file tree 2 files changed +13
-11
lines changed
Expand file tree Collapse file tree 2 files changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,5 @@ const path = require('path');
1111
1212/** @type {import('webpack').Configuration } */
1313module . exports = merge ( common , {
14- mode : 'production' ,
15- devtool : 'eval-source-map'
14+ mode : 'production'
1615} ) ;
Original file line number Diff line number Diff line change 154154
155155 // no subscribers or no topic close existing socket
156156 // suppress errors as they are not useful
157- if ( oldSocket && ( Object . keys ( subscribers ) . length < 1 || ! this . topic ) ) {
158- try {
159- oldSocket . onclose = null ;
160- oldSocket . onerror = null ;
161- oldSocket . close ( ) ;
162- } catch ( e ) {
163- // Suppress errors
157+ if ( Object . keys ( subscribers ) . length < 1 || ! this . topic ) {
158+ if ( oldSocket ) {
159+ try {
160+ oldSocket . onclose = null ;
161+ oldSocket . onerror = null ;
162+ oldSocket . close ( ) ;
163+ } catch ( e ) {
164+ // Suppress errors
165+ }
166+
167+ oldSocket = undefined ;
168+ this . socket = undefined ;
164169 }
165170
166- oldSocket = undefined ;
167- this . socket = undefined ;
168171 return ;
169172 }
170173
You can’t perform that action at this time.
0 commit comments