~alexlauni/do-plugins/bansheeplugin

« back to all changes in this revision

Viewing changes to Banshee/src/Banshee.cs

  • Committer: Alex Launi
  • Date: 2009-01-27 03:34:37 UTC
  • Revision ID: alex.launi@gmail.com-20090127033437-bf1lz1q2i9xqzjrk
fix bug where song failed to enqueue if banshee wasn't started

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
 
52
52
                public static void Index ()
53
53
                {
54
 
                        Log<Banshee>.Debug (Enum.GetName (typeof (ThreadState), index_mutex.ThreadState));
55
54
                        if (index_mutex.ThreadState == ThreadState.Running)
56
55
                                return;
57
 
                        if (index_mutex.ThreadState == ThreadState.Unstarted)
 
56
                        else if (index_mutex.ThreadState == ThreadState.Unstarted)
58
57
                                index_mutex.Start ();
59
 
                        else
 
58
                        else {
60
59
                                index_mutex = MakeIndexerThread ();
 
60
                        }
61
61
                }
62
62
 
63
63
                public static bool IsPlaying {