@@ -24,23 +24,23 @@ internal Boolean Init()
2424
2525 internal async Task SendPauseRequest ( )
2626 {
27- await QueryAsync ( "remote/pause.json?pause=true" , true , true , - 1 ) ;
27+ await QueryAsync ( "remote/pause.json?pause=true" , true , true , - 1 ) . ConfigureAwait ( false ) ;
2828 }
2929
3030 internal async Task SendPlayRequest ( )
3131 {
32- await QueryAsync ( "remote/pause.json?pause=false" , true , true , - 1 ) ;
32+ await QueryAsync ( "remote/pause.json?pause=false" , true , true , - 1 ) . ConfigureAwait ( false ) ;
3333 }
3434
3535 internal async Task SendPlayRequest ( string url , string context = "" )
3636 {
3737 // TODO: instead of having an empty context, one way to fix the bug with the playback time beyond the length of a song would be to provide a 1-song context, and it would be fixed.
38- await QueryAsync ( $ "remote/play.json?uri={ url } &context={ context } ", true , true , - 1 ) ;
38+ await QueryAsync ( $ "remote/play.json?uri={ url } &context={ context } ", true , true , - 1 ) . ConfigureAwait ( false ) ;
3939 }
4040
4141 internal async Task SendQueueRequest ( string url )
4242 {
43- await QueryAsync ( "remote/play.json?uri=" + url + "?action=queue" , true , true , - 1 ) ;
43+ await QueryAsync ( "remote/play.json?uri=" + url + "?action=queue" , true , true , - 1 ) . ConfigureAwait ( false ) ;
4444 }
4545
4646 internal StatusResponse GetNewStatus ( )
@@ -151,7 +151,7 @@ internal async Task<string> QueryAsync(string request, bool oauth, bool cfid, in
151151 using ( var wc = new ExtendedWebClient ( ) )
152152 {
153153 if ( SpotifyLocalAPI . IsSpotifyRunning ( ) )
154- response = "[ " + await wc . DownloadStringTaskAsync ( new Uri ( address ) ) + " ]" ;
154+ response = "[ " + await wc . DownloadStringTaskAsync ( new Uri ( address ) ) . ConfigureAwait ( false ) + " ]" ;
155155 }
156156 }
157157 catch
0 commit comments