File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ namespace RSession.Aliases;
2323
2424[ PluginMetadata (
2525 Id = "RSession.Aliases" ,
26- Version = "1.1.3 " ,
26+ Version = "1.1.4 " ,
2727 Name = "RSession.Aliases" ,
2828 Website = "https://github.com/oscar-wos/RSession" ,
2929 Author = "oscar-wos"
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ namespace RSession.Messages;
2525
2626[ PluginMetadata (
2727 Id = "RSession.Messages" ,
28- Version = "1.1.3 " ,
28+ Version = "1.1.4 " ,
2929 Name = "RSession.Messages" ,
3030 Website = "https://github.com/oscar-wos/RSession" ,
3131 Author = "oscar-wos"
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ namespace RSession.Played;
2424
2525[ PluginMetadata (
2626 Id = "RSession.Played" ,
27- Version = "1.1.3 " ,
27+ Version = "1.1.4 " ,
2828 Name = "RSession.Played" ,
2929 Website = "https://github.com/oscar-wos/RSession" ,
3030 Author = "oscar-wos"
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ namespace RSession.Rotation;
2424
2525[ PluginMetadata (
2626 Id = "RSession.Rotation" ,
27- Version = "1.1.3 " ,
27+ Version = "1.1.4 " ,
2828 Name = "RSession.Rotation" ,
2929 Website = "https://github.com/oscar-wos/RSession" ,
3030 Author = "oscar-wos"
Original file line number Diff line number Diff line change 1616
1717namespace RSession . Contracts . Database ;
1818
19- internal interface IDatabaseService : ISessionDatabaseService , IAsyncDisposable
19+ internal interface IDatabaseService : ISessionDatabaseService , IDisposable
2020{
2121 Task CreateTablesAsync ( ) ;
2222 Task < short > GetMapAsync ( string mapName , long ? workshopId ) ;
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ namespace RSession;
3030
3131[ PluginMetadata (
3232 Id = "RSession" ,
33- Version = "1.1.3 " ,
33+ Version = "1.1.4 " ,
3434 Name = "RSession" ,
3535 Website = "https://github.com/oscar-wos/RSession" ,
3636 Author = "oscar-wos"
@@ -119,10 +119,6 @@ public override void Load(bool hotReload)
119119 public override async void Unload ( )
120120 {
121121 _eventService ? . InvokeDispose ( ) ;
122-
123- if ( _serviceProvider is IAsyncDisposable asyncDisposable )
124- {
125- await asyncDisposable . DisposeAsync ( ) . ConfigureAwait ( false ) ;
126- }
122+ ( _serviceProvider as IDisposable ) ? . Dispose ( ) ;
127123 }
128124}
Original file line number Diff line number Diff line change @@ -220,5 +220,5 @@ private string BuildConnectionString(ConnectionConfig config)
220220 return builder . ConnectionString ;
221221 }
222222
223- public async ValueTask DisposeAsync ( ) => await _dataSource . DisposeAsync ( ) . ConfigureAwait ( false ) ;
223+ public void Dispose ( ) => _dataSource . Dispose ( ) ;
224224}
Original file line number Diff line number Diff line change @@ -220,5 +220,5 @@ private string BuildConnectionString(ConnectionConfig config)
220220 return builder . ConnectionString ;
221221 }
222222
223- public async ValueTask DisposeAsync ( ) => await _dataSource . DisposeAsync ( ) . ConfigureAwait ( false ) ;
223+ public void Dispose ( ) => _dataSource . Dispose ( ) ;
224224}
Original file line number Diff line number Diff line change 1818using RSession . Contracts . Log ;
1919using SwiftlyS2 . Shared ;
2020using SwiftlyS2 . Shared . Events ;
21- using SwiftlyS2 . Shared . ProtobufDefinitions ;
2221
2322namespace RSession . Services . Event ;
2423
@@ -43,11 +42,6 @@ public void Subscribe()
4342
4443 private void OnClientDisconnected ( IOnClientDisconnectedEvent @event )
4544 {
46- if ( @event . Reason == ENetworkDisconnectionReason . NETWORK_DISCONNECT_SHUTDOWN )
47- {
48- return ;
49- }
50-
5145 int playerId = @event . PlayerId ;
5246
5347 if ( _core . PlayerManager . GetPlayer ( playerId ) is not { } player )
You can’t perform that action at this time.
0 commit comments