fixed regression that would not dismiss video encoding notification

Daniel Gultsch created

Change summary

src/main/java/eu/siacs/conversations/services/XmppConnectionService.java | 2 
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

src/main/java/eu/siacs/conversations/services/XmppConnectionService.java 🔗

@@ -1091,9 +1091,9 @@ public class XmppConnectionService extends Service {
             status = true;
         } else {
             stopForeground(true);
-            mNotificationService.dismissForcedForegroundNotification(); //if the channel was changed the previous call might fail
             status = false;
         }
+        mNotificationService.dismissForcedForegroundNotification(); //if the channel was changed the previous call might fail
         Log.d(Config.LOGTAG,"ForegroundService: "+(status?"on":"off"));
     }