Fares 10 months ago
parent
commit
3cbe64a196
1 changed files with 1 additions and 0 deletions
  1. 1 0
      lib/handlers/upload_handler.dart

+ 1 - 0
lib/handlers/upload_handler.dart

@@ -104,6 +104,7 @@ Future<Response> handleFileUpload(Request request) async {
 
             print('serverResponse: $serverResponse');
           });
+          await myChannel.unsubscribe();
 
           // No need to subscribe to channel
           // final channel = supabase.channel('csvhichstorage');