File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -266,9 +266,9 @@ class WebServerService extends BaseService {
266
266
socket . on ( 'trash.is_empty' , ( msg ) => {
267
267
socket . broadcast . to ( socket . user . id ) . emit ( 'trash.is_empty' , msg ) ;
268
268
} ) ;
269
- socket . on ( 'puter_is_actually_open' , ( msg ) => {
269
+ socket . on ( 'puter_is_actually_open' , async ( msg ) => {
270
270
const svc_event = this . services . get ( 'event' ) ;
271
- svc_event . emit ( 'web.socket.user-connected' , {
271
+ await svc_event . emit ( 'web.socket.user-connected' , {
272
272
user : socket . user
273
273
} ) ;
274
274
} ) ;
Original file line number Diff line number Diff line change @@ -212,10 +212,11 @@ class Container {
212
212
if ( this . logger ) {
213
213
this . logger . noticeme ( `services:event ${ id } ` , { args } ) ;
214
214
}
215
+
215
216
const promises = [ ] ;
216
217
for ( const k in this . instances_ ) {
217
218
if ( this . instances_ [ k ] . __on ) {
218
- promises . push ( this . instances_ [ k ] . __on ( id , args ) ) ;
219
+ promises . push ( Context . arun ( ( ) => this . instances_ [ k ] . __on ( id , args ) ) ) ;
219
220
}
220
221
}
221
222
await Promise . all ( promises ) ;
You can’t perform that action at this time.
0 commit comments